mirror of https://github.com/encounter/SDL.git
[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