Преглед на файлове

android: Enable all controller styles on emulation shutdown

t895 преди 2 години
родител
ревизия
9a3fd76b25
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      src/android/app/src/main/jni/native.cpp

+ 3 - 0
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();