1
0
mirror of https://github.com/cathery/sys-con.git synced 2024-11-16 14:09:51 +00:00

Increase the controller threads' priority

This commit is contained in:
cathery 2020-03-12 17:47:41 +03:00
parent 393263eb7c
commit 2042d65935

View File

@ -34,7 +34,7 @@ void SwitchVirtualGamepadHandler::OutputThreadLoop(void *handler)
Result SwitchVirtualGamepadHandler::InitInputThread() 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; m_inputThreadIsRunning = true;
return m_inputThread.Start().GetValue(); return m_inputThread.Start().GetValue();
} }
@ -47,7 +47,7 @@ void SwitchVirtualGamepadHandler::ExitInputThread()
Result SwitchVirtualGamepadHandler::InitOutputThread() 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; m_outputThreadIsRunning = true;
return m_outputThread.Start().GetValue(); return m_outputThread.Start().GetValue();
} }