mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-05-02 15:55:43 -04:00
Frontend: Fix crash in controller input
This commit is contained in:
parent
6e18e56089
commit
e4595992a5
@ -659,7 +659,7 @@ void SDLHostInterface::HandleSDLControllerButtonEventForController(const SDL_Eve
|
|||||||
{
|
{
|
||||||
// Log_DevPrintf("button %d %s", ev->cbutton.button, ev->cbutton.state == SDL_PRESSED ? "pressed" : "released");
|
// Log_DevPrintf("button %d %s", ev->cbutton.button, ev->cbutton.state == SDL_PRESSED ? "pressed" : "released");
|
||||||
|
|
||||||
Controller* controller = m_system->GetController(0);
|
Controller* controller = m_system ? m_system->GetController(0) : nullptr;
|
||||||
if (!controller)
|
if (!controller)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user