mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +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,
|
||||
unsigned port, unsigned device, unsigned idx, unsigned id)
|
||||
{
|
||||
settings_t *settings = NULL;
|
||||
sdl_input_t *sdl = (sdl_input_t*)data;
|
||||
|
||||
switch (device)
|
||||
@ -245,13 +244,11 @@ static int16_t sdl_input_state(void *data,
|
||||
}
|
||||
break;
|
||||
case RETRO_DEVICE_MOUSE:
|
||||
settings = config_get_ptr();
|
||||
if (settings->uints.input_mouse_index[ port ] == 0)
|
||||
if (config_get_ptr()->uints.input_mouse_index[ port ] == 0)
|
||||
return sdl_mouse_device_state(sdl, id);
|
||||
break;
|
||||
case RARCH_DEVICE_MOUSE_SCREEN:
|
||||
settings = config_get_ptr();
|
||||
if (settings->uints.input_mouse_index[ port ] == 0)
|
||||
if (config_get_ptr()->uints.input_mouse_index[ port ] == 0)
|
||||
return sdl_mouse_device_state(sdl, id);
|
||||
break;
|
||||
case RETRO_DEVICE_POINTER:
|
||||
|
Loading…
x
Reference in New Issue
Block a user