mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
Fix CXX_BUILD.
This commit is contained in:
parent
f4cf33f717
commit
f7a5853154
@ -370,12 +370,12 @@ static void handle_hotplug(udev_input_t *udev)
|
|||||||
bool is_mouse = val_mouse && !strcmp(val_mouse, "1") && devnode;
|
bool is_mouse = val_mouse && !strcmp(val_mouse, "1") && devnode;
|
||||||
bool is_touchpad = val_touchpad && !strcmp(val_touchpad, "1") && devnode;
|
bool is_touchpad = val_touchpad && !strcmp(val_touchpad, "1") && devnode;
|
||||||
|
|
||||||
if (!is_keyboard && !is_mouse && !is_touchpad)
|
|
||||||
goto end;
|
|
||||||
|
|
||||||
device_handle_cb cb = NULL;
|
device_handle_cb cb = NULL;
|
||||||
const char *devtype = NULL;
|
const char *devtype = NULL;
|
||||||
|
|
||||||
|
if (!is_keyboard && !is_mouse && !is_touchpad)
|
||||||
|
goto end;
|
||||||
|
|
||||||
if (is_keyboard)
|
if (is_keyboard)
|
||||||
{
|
{
|
||||||
cb = udev_handle_keyboard;
|
cb = udev_handle_keyboard;
|
||||||
@ -523,7 +523,7 @@ static int16_t udev_input_state(void *data, const struct retro_keybind **binds,
|
|||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
case RETRO_DEVICE_KEYBOARD:
|
case RETRO_DEVICE_KEYBOARD:
|
||||||
return id < RETROK_LAST && get_bit(udev->key_state, input_translate_rk_to_keysym(id));
|
return id < RETROK_LAST && get_bit(udev->key_state, input_translate_rk_to_keysym((enum retro_key)id));
|
||||||
|
|
||||||
case RETRO_DEVICE_MOUSE:
|
case RETRO_DEVICE_MOUSE:
|
||||||
return udev_mouse_state(udev, id);
|
return udev_mouse_state(udev, id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user