mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-10 08:38:20 +00:00
Ignore SDL_MOUSEBUTTONDOWN events incompatible with SPICE (#38)
* Ignore SDL_MOUSEBUTTONDOWN events that aren't compatible with the SPICE PS/2 mouse
This commit is contained in:
parent
a02087e5e4
commit
3d9d275d61
@ -587,6 +587,9 @@ int eventThread(void * arg)
|
||||
}
|
||||
|
||||
case SDL_MOUSEBUTTONDOWN:
|
||||
// The SPICE protocol doesn't support more than a standard PS/2 3 button mouse
|
||||
if (event.button.button > 3)
|
||||
break;
|
||||
if (
|
||||
!spice_mouse_position(event.button.x, event.button.y) ||
|
||||
!spice_mouse_press(event.button.button)
|
||||
@ -598,6 +601,9 @@ int eventThread(void * arg)
|
||||
break;
|
||||
|
||||
case SDL_MOUSEBUTTONUP:
|
||||
// The SPICE protocol doesn't support more than a standard PS/2 3 button mouse
|
||||
if (event.button.button > 3)
|
||||
break;
|
||||
if (
|
||||
!spice_mouse_position(event.button.x, event.button.y) ||
|
||||
!spice_mouse_release(event.button.button)
|
||||
|
Loading…
Reference in New Issue
Block a user