From e8185a27b90e1eaa3d0cd2b771d4723532316fd4 Mon Sep 17 00:00:00 2001 From: Diavolo Date: Fri, 10 Sep 2021 11:35:15 +0200 Subject: [PATCH] Fixed compilation --- src/Components/Modules/Gamepad.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Components/Modules/Gamepad.cpp b/src/Components/Modules/Gamepad.cpp index 8471d2d8..828becc1 100644 --- a/src/Components/Modules/Gamepad.cpp +++ b/src/Components/Modules/Gamepad.cpp @@ -1023,7 +1023,7 @@ namespace Components if (std::fabs(value) > 0.0f) { gamePad.inUse = true; - gpad_in_use.setRaw(true); + gpad_in_use.set(true); } } @@ -1194,7 +1194,7 @@ namespace Components auto& gamePad = gamePads[gamePadIndex]; gamePad.inUse = true; - gpad_in_use.setRaw(true); + gpad_in_use.set(true); if (Game::Key_IsKeyCatcherActive(gamePadIndex, Game::KEYCATCH_UI)) CL_GamepadResetMenuScrollTime(gamePadIndex, key, buttonEvent == Game::GPAD_BUTTON_PRESSED, time); @@ -1525,7 +1525,7 @@ namespace Components } } - gpad_present.setRaw(gpadPresent); + gpad_present.set(gpadPresent); } @@ -1821,7 +1821,7 @@ namespace Components { // A keyboard key has been pressed. Mark controller as unused. gamePads[0].inUse = false; - gpad_in_use.setRaw(false); + gpad_in_use.set(false); // Call original function Utils::Hook::Call(0x4F6480)(localClientNum, key, down, time); @@ -1837,7 +1837,7 @@ namespace Components if (dx != 0 || dy != 0) { gamePads[0].inUse = false; - gpad_in_use.setRaw(false); + gpad_in_use.set(false); } // Call original function