mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Merge pull request #13125 from grant2258/mouse
Udev pointer pressed update to support relative devices pointer pressed
This commit is contained in:
commit
c1b002e454
@ -1028,9 +1028,11 @@ static int16_t udev_pointer_state(udev_input_t *udev,
|
||||
case RETRO_DEVICE_ID_POINTER_Y:
|
||||
return udev_mouse_get_pointer_y(mouse, screen);
|
||||
case RETRO_DEVICE_ID_POINTER_PRESSED:
|
||||
return mouse->pp;
|
||||
if(mouse->x_min < mouse->x_max)
|
||||
return mouse->pp;
|
||||
else
|
||||
return mouse->l;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user