hid_mouse

This commit is contained in:
Romain Vimont
2021-12-26 22:32:51 +01:00
parent 97599c5db3
commit 8a48256305
5 changed files with 303 additions and 7 deletions

View File

@@ -639,10 +639,10 @@ input_manager_process_mouse_motion(struct input_manager *im,
if (im->forward_all_clicks) {
mask |= SDL_BUTTON_MMASK | SDL_BUTTON_RMASK;
}
if (!(event->state & mask)) {
// do not send motion events when no click is pressed
return;
}
//if (!(event->state & mask)) {
// // do not send motion events when no click is pressed
// return;
//}
if (event->which == SDL_TOUCH_MOUSEID) {
// simulated from touch events, so it's a duplicate
return;