mirror of
https://github.com/libretro/RetroArch
synced 2025-04-17 20:43:10 +00:00
Cleanups
This commit is contained in:
parent
0de147971a
commit
1581ece9ea
@ -404,7 +404,7 @@ static uint64_t input_wl_get_capabilities(void *data)
|
||||
| (1 << RETRO_DEVICE_LIGHTGUN);
|
||||
}
|
||||
|
||||
static void input_wl_grab_mouse(void *data, bool state) { }
|
||||
static void input_wl_grab_mouse(void *data, bool state)
|
||||
{
|
||||
/* This function does nothing but registering it is necessary for allowing
|
||||
* mouse-grab toggling. */
|
||||
|
@ -149,12 +149,12 @@ static int16_t x_input_state(
|
||||
unsigned idx,
|
||||
unsigned id)
|
||||
{
|
||||
|
||||
if (port < MAX_USERS)
|
||||
{
|
||||
x11_input_t *x11 = (x11_input_t*)data;
|
||||
settings_t *settings = config_get_ptr();
|
||||
|
||||
if (port >= MAX_USERS)
|
||||
return 0;
|
||||
|
||||
switch (device)
|
||||
{
|
||||
case RETRO_DEVICE_JOYPAD:
|
||||
@ -426,6 +426,7 @@ static int16_t x_input_state(
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user