This commit is contained in:
Christian Semmler 2025-07-14 17:11:40 -07:00
parent 125d3272f6
commit e74cc4b252
2 changed files with 6 additions and 3 deletions

View File

@ -668,11 +668,11 @@ MxBool LegoInputManager::HandleTouchEvent(SDL_Event* p_event, TouchScheme p_touc
MxBool LegoInputManager::HandleRumbleEvent() MxBool LegoInputManager::HandleRumbleEvent()
{ {
static bool hapticsInitialized = false; static bool g_hapticsInitialized = false;
if (!hapticsInitialized) { if (!g_hapticsInitialized) {
InitializeHaptics(); InitializeHaptics();
hapticsInitialized = true; g_hapticsInitialized = true;
} }
SDL_Haptic* haptic = nullptr; SDL_Haptic* haptic = nullptr;

View File

@ -74,3 +74,6 @@ cksize: "Re-defined Windows name"
fccType: "Re-defined Windows name" fccType: "Re-defined Windows name"
dwDataOffset: "Re-defined Windows name" dwDataOffset: "Re-defined Windows name"
fccType: "Re-defined Windows name" fccType: "Re-defined Windows name"
SDL_MouseID_v: "SDL-based name"
SDL_JoystickID_v: "SDL-based name"
SDL_TouchID_v: "SDL-based name"