|
|
@ -267,8 +267,10 @@ void SDLState::CloseJoystick(SDL_Joystick* sdl_joystick) { |
|
|
return joystick->GetSDLJoystick() == sdl_joystick; |
|
|
return joystick->GetSDLJoystick() == sdl_joystick; |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
if (joystick_it != joystick_guid_list.end()) { |
|
|
(*joystick_it)->SetSDLJoystick(nullptr, nullptr); |
|
|
(*joystick_it)->SetSDLJoystick(nullptr, nullptr); |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
void SDLState::HandleGameControllerEvent(const SDL_Event& event) { |
|
|
void SDLState::HandleGameControllerEvent(const SDL_Event& event) { |
|
|
switch (event.type) { |
|
|
switch (event.type) { |
|
|
|