Skip to content
Browse files

Merge pull request #7622 from zackhow/ds4trig

Android: fix/ignore L2/R2 buttons
  • Loading branch information...
Helios747 committed Jan 7, 2019
2 parents 88ef810 + 0c0e045 commit 3e7803b240d14deae9adc9617611c27043336aa7
@@ -18,8 +18,7 @@ public static boolean shouldKeyBeIgnored(InputDevice inputDevice, int keyCode)
// The two analog triggers generate analog motion events as well as a keycode.
// We always prefer to use the analog values, so throw away the button press
// Even though the triggers are L/R2, without mappings they generate L/R1 events.
return keyCode == KeyEvent.KEYCODE_BUTTON_L1 || keyCode == KeyEvent.KEYCODE_BUTTON_R1;
return keyCode == KeyEvent.KEYCODE_BUTTON_L2 || keyCode == KeyEvent.KEYCODE_BUTTON_R2;
return false;

0 comments on commit 3e7803b

Please sign in to comment.
You can’t perform that action at this time.