This commit is contained in:
libretroadmin 2023-03-17 00:03:23 +01:00
parent 0de147971a
commit 1581ece9ea
2 changed files with 267 additions and 266 deletions

View File

@ -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. */

View File

@ -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;
}