From 05457b6851a0bd6c4fe0d64e79c5d213059e2b3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20V?= Date: Sun, 14 Jul 2024 09:36:50 +0200 Subject: [PATCH] OpenXR - BT/OTG support and hardcode native resolution --- app/src/main/AndroidManifest.xml | 1 + .../main/java/com/termux/x11/LorieView.java | 11 ++++++++-- .../main/java/com/termux/x11/XrActivity.java | 21 +++++++++++++++++++ 3 files changed, 31 insertions(+), 2 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index c820934c6..0090a8884 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -10,6 +10,7 @@ + keyboardDisabled = false, 250); + } + } + @Override public boolean dispatchKeyEvent(KeyEvent event) { + // Ignore event madness when disabling software keyboard + if (keyboardDisabled) { + return true; + } + + // Bluetooth/OTG keyboards work properly with the standard flow + if (hasWindowFocus()) { + return super.dispatchKeyEvent(event); + } + // Meta HorizonOS sends up event only (as for in v66) if (event.getAction() == KeyEvent.ACTION_UP) {