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);
|
| (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
|
/* This function does nothing but registering it is necessary for allowing
|
||||||
* mouse-grab toggling. */
|
* mouse-grab toggling. */
|
||||||
|
|
|
@ -149,12 +149,12 @@ static int16_t x_input_state(
|
||||||
unsigned idx,
|
unsigned idx,
|
||||||
unsigned id)
|
unsigned id)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if (port < MAX_USERS)
|
||||||
|
{
|
||||||
x11_input_t *x11 = (x11_input_t*)data;
|
x11_input_t *x11 = (x11_input_t*)data;
|
||||||
settings_t *settings = config_get_ptr();
|
settings_t *settings = config_get_ptr();
|
||||||
|
|
||||||
if (port >= MAX_USERS)
|
|
||||||
return 0;
|
|
||||||
|
|
||||||
switch (device)
|
switch (device)
|
||||||
{
|
{
|
||||||
case RETRO_DEVICE_JOYPAD:
|
case RETRO_DEVICE_JOYPAD:
|
||||||
|
@ -426,6 +426,7 @@ static int16_t x_input_state(
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue