mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-01-30 23:10:14 -05:00
Don't close controller after SDL has quit (#642)
* Don't close controller after SDL has quit * Don't check if controller can rumble if null
This commit is contained in:
parent
926fd3f406
commit
e3267a4e9b
@ -101,10 +101,10 @@ namespace Ship {
|
||||
}
|
||||
|
||||
bool SDLController::Close() {
|
||||
if (Cont != nullptr && SDL_WasInit(SDL_INIT_GAMECONTROLLER)) {
|
||||
if (CanRumble()) {
|
||||
SDL_GameControllerRumble(Cont, 0, 0, 0);
|
||||
}
|
||||
if (Cont != nullptr) {
|
||||
SDL_GameControllerClose(Cont);
|
||||
}
|
||||
Cont = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user