mirror of
https://github.com/etlegacy/etlegacy-android.git
synced 2025-04-12 04:00:48 +00:00
java: this fixes ESC and console buttons not working correctly
After key was pressed there was needs for cancel that event
This commit is contained in:
parent
756a5bbadb
commit
734dc62d2d
1 changed files with 2 additions and 0 deletions
|
@ -120,6 +120,7 @@ public class ETLActivity extends SDLActivity implements JoyStickListener
|
|||
@Override
|
||||
public void onClick(View v) {
|
||||
SDLActivity.onNativeKeyDown(68);
|
||||
SDLActivity.onNativeKeyUp(68);
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -137,6 +138,7 @@ public class ETLActivity extends SDLActivity implements JoyStickListener
|
|||
@Override
|
||||
public void onClick(View v) {
|
||||
SDLActivity.onNativeKeyDown(111);
|
||||
SDLActivity.onNativeKeyUp(111);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue