mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-17 16:10:29 +00:00
(udev fix) This fixes touchpad movement inside the menu
This commit is contained in:
parent
84f5fa1f26
commit
34be5566dd
@ -482,14 +482,16 @@ static void udev_input_poll(void *data)
|
||||
for (i = 0; i < udev->num_devices; ++i)
|
||||
{
|
||||
if (udev->devices[i]->type == UDEV_INPUT_MOUSE)
|
||||
mouse = &udev->devices[i]->state.mouse;
|
||||
{
|
||||
mouse = &udev->devices[i]->state.mouse;
|
||||
mouse->x = x;
|
||||
mouse->y = y;
|
||||
}
|
||||
else if (udev->devices[i]->type == UDEV_INPUT_TOUCHPAD)
|
||||
mouse = &udev->devices[i]->state.touchpad.mouse;
|
||||
else
|
||||
continue;
|
||||
|
||||
mouse->x = x;
|
||||
mouse->y = y;
|
||||
mouse->dlt_x = 0;
|
||||
mouse->dlt_y = 0;
|
||||
mouse->wu = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user