fteqw
fteqw copied to clipboard
Android Joystick key events
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:
- 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).
- 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