fteqw icon indicating copy to clipboard operation
fteqw copied to clipboard

Android Joystick key events

Open Xylemon opened this issue 2 years ago • 0 comments

https://sourceforge.net/p/fteqw/tickets/49/

oibaf1 wrote on 2017-08-10:

I tried FTEdroid with a Sony Android TV and logitech joystick (F310). It works perfectly but the event hanlder needs a couple of improvements:

  1. Please, add KEYCODE_BUTTON_START to K_ENTER event. I mean, in mapKey function add "case KeyEvent.KEYCODE_DPAD_CENTER:" to

case KeyEvent.KEYCODE_DPAD_CENTER: case KeyEvent.KEYCODE_ENTER: return K_ENTER;

Indeed most of the joysticks do not have DPAD_CENTER or ENTER button and a good solution to map the enter event is to use the Start button (currently I use the pad center of the TV remote control).

  1. Please, add:

case 104 /KeyEvent.KEYCODE_BUTTON_L2/: return K_AUX5; case 105 /KeyEvent.KEYCODE_BUTTON_R2/: return K_AUX6;

to have two more buttons to configure

Xylemon avatar Dec 29 '22 21:12 Xylemon