From ceeaddb2e187ff211b069e46a8b3e4da0e8c316c Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Mon, 29 Jul 2024 19:26:36 +0200 Subject: [PATCH] InputSystem: change mutex types Use SDK's CThreadMutex, which is the actual underlying mutex type used for this class. --- src/inputsystem/inputsystem.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/inputsystem/inputsystem.h b/src/inputsystem/inputsystem.h index 4569f2dd..3a7ec045 100644 --- a/src/inputsystem/inputsystem.h +++ b/src/inputsystem/inputsystem.h @@ -100,13 +100,13 @@ private: InputState_t m_InputState[INPUT_STATE_COUNT]; // Current button state mutex - CRITICAL_SECTION m_InputStateMutex; + CThreadMutex m_InputStateMutex; int unknown0; short unknown1; bool unknown2; // Analog event mutex - CRITICAL_SECTION m_AnalogEventMutex; + CThreadMutex m_AnalogEventMutex; int unknown3; short unknown4; bool unknown5; @@ -141,7 +141,7 @@ private: // Raw mouse input bool m_bRawInputSupported; - CRITICAL_SECTION m_MouseAccumMutex; + CThreadMutex m_MouseAccumMutex; int m_mouseRawAccumX; int m_mouseRawAccumY;