Merge pull request #13125 from grant2258/mouse

Udev pointer pressed update to support relative devices pointer pressed
This commit is contained in:
Autechre 2021-10-16 22:10:36 +02:00 committed by GitHub
commit c1b002e454
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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