mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
Cleanups
This commit is contained in:
parent
cc43f3a355
commit
4f78264541
@ -194,7 +194,6 @@ static int16_t sdl_input_state(void *data,
|
|||||||
const struct retro_keybind **binds,
|
const struct retro_keybind **binds,
|
||||||
unsigned port, unsigned device, unsigned idx, unsigned id)
|
unsigned port, unsigned device, unsigned idx, unsigned id)
|
||||||
{
|
{
|
||||||
settings_t *settings = NULL;
|
|
||||||
sdl_input_t *sdl = (sdl_input_t*)data;
|
sdl_input_t *sdl = (sdl_input_t*)data;
|
||||||
|
|
||||||
switch (device)
|
switch (device)
|
||||||
@ -245,13 +244,11 @@ static int16_t sdl_input_state(void *data,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case RETRO_DEVICE_MOUSE:
|
case RETRO_DEVICE_MOUSE:
|
||||||
settings = config_get_ptr();
|
if (config_get_ptr()->uints.input_mouse_index[ port ] == 0)
|
||||||
if (settings->uints.input_mouse_index[ port ] == 0)
|
|
||||||
return sdl_mouse_device_state(sdl, id);
|
return sdl_mouse_device_state(sdl, id);
|
||||||
break;
|
break;
|
||||||
case RARCH_DEVICE_MOUSE_SCREEN:
|
case RARCH_DEVICE_MOUSE_SCREEN:
|
||||||
settings = config_get_ptr();
|
if (config_get_ptr()->uints.input_mouse_index[ port ] == 0)
|
||||||
if (settings->uints.input_mouse_index[ port ] == 0)
|
|
||||||
return sdl_mouse_device_state(sdl, id);
|
return sdl_mouse_device_state(sdl, id);
|
||||||
break;
|
break;
|
||||||
case RETRO_DEVICE_POINTER:
|
case RETRO_DEVICE_POINTER:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user