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:
rafal1137 2019-09-02 14:03:36 +02:00
parent 756a5bbadb
commit 734dc62d2d

View file

@ -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);
}
});