mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-03-07 16:56:59 +01:00
[Android] Try to improve handling of some dpad+gamepad+keyboard corner cases
This commit is contained in:
parent
6dbed827a7
commit
04afd61cd9
@ -612,10 +612,11 @@ class SDLSurface extends SurfaceView implements SurfaceHolder.Callback,
|
||||
} else if (event.getAction() == KeyEvent.ACTION_UP) {
|
||||
SDLActivity.onNativePadUp(id, keyCode);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
else if( (event.getSource() & InputDevice.SOURCE_KEYBOARD) != 0) {
|
||||
|
||||
if( (event.getSource() & InputDevice.SOURCE_KEYBOARD) != 0) {
|
||||
if (event.getAction() == KeyEvent.ACTION_DOWN) {
|
||||
//Log.v("SDL", "key down: " + keyCode);
|
||||
SDLActivity.onNativeKeyDown(keyCode);
|
||||
|
Loading…
Reference in New Issue
Block a user