aboutsummaryrefslogtreecommitdiff
path: root/src/android
diff options
context:
space:
mode:
authort895 <clombardo169@gmail.com>2024-02-21 08:13:54 -0500
committert895 <clombardo169@gmail.com>2024-02-21 08:13:54 -0500
commit3637b5e4fbb5572fbad39433cf93dc42f263fc0a (patch)
treeaeabac4c45c534a2e6678a2472902ea2dfc2b94d /src/android
parent3b13df9a82d5c8eba281395da383971eac36bbb0 (diff)
android: Enable all controller styles on emulation shutdown
Diffstat (limited to 'src/android')
-rw-r--r--src/android/app/src/main/jni/native.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/android/app/src/main/jni/native.cpp b/src/android/app/src/main/jni/native.cpp
index 4ea82e2170..1226219ad2 100644
--- a/src/android/app/src/main/jni/native.cpp
+++ b/src/android/app/src/main/jni/native.cpp
@@ -292,6 +292,9 @@ void EmulationSession::ShutdownEmulation() {
// Unload user input.
m_system.HIDCore().UnloadInputDevices();
+ // Enable all controllers
+ m_system.HIDCore().SetSupportedStyleTag({Core::HID::NpadStyleSet::All});
+
// Shutdown the main emulated process
if (m_load_result == Core::SystemResultStatus::Success) {
m_system.DetachDebugger();