Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Android] Try to improve handling of some dpad+gamepad+keyboard corne…
…r cases
  • Loading branch information
gabomdq committed Nov 11, 2013
1 parent 6dbed82 commit 04afd61
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions android-project/src/org/libsdl/app/SDLActivity.java
Expand Up @@ -612,10 +612,11 @@ public boolean onKey(View v, int keyCode, KeyEvent event) {
} 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);
Expand Down

0 comments on commit 04afd61

Please sign in to comment.