From e1a8f86d4fdf0223337a7223d71833de6ef6d3cd Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 21 Nov 2013 19:56:44 -0500 Subject: [PATCH] Make the virtual and hardware back buttons on the devices themselves work as the in-game back button. This is required for Shield's back button to work. --- src/com/limelight/Game.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/com/limelight/Game.java b/src/com/limelight/Game.java index 610bfd1d..4ec667db 100644 --- a/src/com/limelight/Game.java +++ b/src/com/limelight/Game.java @@ -96,11 +96,6 @@ public class Game extends Activity implements OnGenericMotionListener, OnTouchLi @Override public boolean onKeyDown(int keyCode, KeyEvent event) { - - // Skip keyboard and virtual button events - if (event.getSource() == InputDevice.SOURCE_KEYBOARD) - return super.onKeyDown(keyCode, event); - switch (keyCode) { case KeyEvent.KEYCODE_BUTTON_START: case KeyEvent.KEYCODE_MENU: @@ -164,11 +159,6 @@ public class Game extends Activity implements OnGenericMotionListener, OnTouchLi @Override public boolean onKeyUp(int keyCode, KeyEvent event) { - - // Skip keyboard and virtual button events - if (event.getSource() == InputDevice.SOURCE_KEYBOARD) - return super.onKeyUp(keyCode, event); - switch (keyCode) { case KeyEvent.KEYCODE_BUTTON_START: case KeyEvent.KEYCODE_MENU: