From 2042d659357ff1267fc77ec3c3740555234bd58c Mon Sep 17 00:00:00 2001 From: cathery Date: Thu, 12 Mar 2020 17:47:41 +0300 Subject: [PATCH] Increase the controller threads' priority --- source/ControllerSwitch/SwitchVirtualGamepadHandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/ControllerSwitch/SwitchVirtualGamepadHandler.cpp b/source/ControllerSwitch/SwitchVirtualGamepadHandler.cpp index 8df5d84..ee78167 100644 --- a/source/ControllerSwitch/SwitchVirtualGamepadHandler.cpp +++ b/source/ControllerSwitch/SwitchVirtualGamepadHandler.cpp @@ -34,7 +34,7 @@ void SwitchVirtualGamepadHandler::OutputThreadLoop(void *handler) Result SwitchVirtualGamepadHandler::InitInputThread() { - R_TRY(m_inputThread.Initialize(&SwitchVirtualGamepadHandler::InputThreadLoop, this, 0x3F).GetValue()); + R_TRY(m_inputThread.Initialize(&SwitchVirtualGamepadHandler::InputThreadLoop, this, 0x30).GetValue()); m_inputThreadIsRunning = true; return m_inputThread.Start().GetValue(); } @@ -47,7 +47,7 @@ void SwitchVirtualGamepadHandler::ExitInputThread() Result SwitchVirtualGamepadHandler::InitOutputThread() { - R_TRY(m_outputThread.Initialize(&SwitchVirtualGamepadHandler::OutputThreadLoop, this, 0x3F).GetValue()); + R_TRY(m_outputThread.Initialize(&SwitchVirtualGamepadHandler::OutputThreadLoop, this, 0x30).GetValue()); m_outputThreadIsRunning = true; return m_outputThread.Start().GetValue(); }