Android cleanup

This commit is contained in:
AlexandreRouma
2022-02-16 17:06:46 +01:00
parent 51c940acd4
commit b5cbafb01d
3 changed files with 2 additions and 59 deletions

View File

@ -124,7 +124,9 @@ class MainActivity : NativeActivity() {
// We assume dispatchKeyEvent() of the NativeActivity is actually called for every
// KeyEvent and not consumed by any View before it reaches here
override fun dispatchKeyEvent(event: KeyEvent): Boolean {
Log.w(TAG, "Key Action");
if (event.action == KeyEvent.ACTION_DOWN) {
Log.w(TAG, "Key Pressed");
unicodeCharacterQueue.offer(event.getUnicodeChar(event.metaState))
}
return super.dispatchKeyEvent(event)