no message
This commit is contained in:
parent
ce2974e5ea
commit
12ccba7427
42
src/main.c
42
src/main.c
|
@ -519,31 +519,31 @@ static void pollEvent()
|
||||||
// case SDL_KEYDOWN:
|
// case SDL_KEYDOWN:
|
||||||
// if(processShortcuts(&event.key)) return NULL;
|
// if(processShortcuts(&event.key)) return NULL;
|
||||||
// break;
|
// break;
|
||||||
// case SDL_JOYDEVICEADDED:
|
case SDL_JOYDEVICEADDED:
|
||||||
// {
|
{
|
||||||
// s32 id = event.jdevice.which;
|
s32 id = event.jdevice.which;
|
||||||
|
|
||||||
// if (id < TIC_GAMEPADS)
|
if (id < TIC_GAMEPADS)
|
||||||
// {
|
{
|
||||||
// if(platform.joysticks[id])
|
if(platform.joysticks[id])
|
||||||
// SDL_JoystickClose(platform.joysticks[id]);
|
SDL_JoystickClose(platform.joysticks[id]);
|
||||||
|
|
||||||
// platform.joysticks[id] = SDL_JoystickOpen(id);
|
platform.joysticks[id] = SDL_JoystickOpen(id);
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// break;
|
break;
|
||||||
|
|
||||||
// case SDL_JOYDEVICEREMOVED:
|
case SDL_JOYDEVICEREMOVED:
|
||||||
// {
|
{
|
||||||
// s32 id = event.jdevice.which;
|
s32 id = event.jdevice.which;
|
||||||
|
|
||||||
// if (id < TIC_GAMEPADS && platform.joysticks[id])
|
if (id < TIC_GAMEPADS && platform.joysticks[id])
|
||||||
// {
|
{
|
||||||
// SDL_JoystickClose(platform.joysticks[id]);
|
SDL_JoystickClose(platform.joysticks[id]);
|
||||||
// platform.joysticks[id] = NULL;
|
platform.joysticks[id] = NULL;
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// break;
|
break;
|
||||||
case SDL_WINDOWEVENT:
|
case SDL_WINDOWEVENT:
|
||||||
switch(event.window.event)
|
switch(event.window.event)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue