diff options
| author | Dentomologist <dentomologist@gmail.com> | 2024-05-26 16:50:12 -0700 |
|---|---|---|
| committer | Dentomologist <dentomologist@gmail.com> | 2024-05-31 15:14:44 -0700 |
| commit | c3bdd05d2a7d5c0a5b513481ab929cef66e5249b (patch) | |
| tree | 13adbe2c4226ca23fc6b80553edced0048d089df /Source/Android/jni/MainAndroid.cpp | |
| parent | 8ac22378a18217859f518ca6a07119ecea8c9cb7 (diff) | |
TAS Input: Enable hotkeys and controller input when Input has focus
Enable emulator hotkeys and controller input (when that option is
enabled) when a TAS Input window has focus, as if it was the render
window instead. This allows TASers to use frame advance and the like
without having to switch the focused window or disabling Hotkeys Require
Window Focus which also picks up keypresses while other apps are active.
Cursor updates are disabled when the TAS Input window has focus, as
otherwise the Wii IR widget (and anything else controlled by the mouse)
becomes unusable. The cursor continues to work normally when the render
window has focus.
Diffstat (limited to 'Source/Android/jni/MainAndroid.cpp')
| -rw-r--r-- | Source/Android/jni/MainAndroid.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Android/jni/MainAndroid.cpp b/Source/Android/jni/MainAndroid.cpp index 9fcf1b33a3..cb1a252d3c 100644 --- a/Source/Android/jni/MainAndroid.cpp +++ b/Source/Android/jni/MainAndroid.cpp @@ -173,6 +173,11 @@ bool Host_RendererIsFullscreen() return false; } +bool Host_TASInputHasFocus() +{ + return false; +} + void Host_YieldToUI() { } |
