Fix cheeky switch case fallthru

This commit is contained in:
2023-01-18 23:44:01 +11:00
parent f609ad106d
commit dfd8f65111

View File

@ -199,11 +199,13 @@ int main(int argc, char** argv)
repaint = stickr.recalc = true; repaint = stickr.recalc = true;
} }
} }
break;
case (SDL_CONTROLLERDEVICEADDED): case (SDL_CONTROLLERDEVICEADDED):
if (pad == NULL) if (pad == NULL)
UseGamepad(event.cdevice.which); UseGamepad(event.cdevice.which);
break; break;
case (SDL_CONTROLLERDEVICEREMOVED): case (SDL_CONTROLLERDEVICEREMOVED):
if (pad != NULL && event.cdevice.which == joyid) if (pad != NULL && event.cdevice.which == joyid)
{ {