controller select crash fix + minor changes (#3355)

* fix crash and ingame controller check

* performance issue fix

* add change controller event to imgui
This commit is contained in:
rainmakerv2
2025-07-31 14:12:06 +08:00
committed by GitHub
parent ecc924791d
commit 1b195c9613
4 changed files with 73 additions and 71 deletions

View File

@@ -24,8 +24,10 @@ bool Wrapper::ProcessEvent(SDL_Event* event) {
case SDL_EVENT_WINDOW_EXPOSED:
return false;
case SDL_EVENT_GAMEPAD_ADDED:
emit SDLEvent(SDL_EVENT_GAMEPAD_ADDED, 0, 0);
return false;
case SDL_EVENT_GAMEPAD_REMOVED:
emit SDLEvent(SDL_EVENT_GAMEPAD_REMOVED, 0, 0);
return false;
case SDL_EVENT_QUIT:
emit SDLEvent(SDL_EVENT_QUIT, 0, 0);