mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 02:30:35 +00:00
(X11) Cleanup x11_alive
This commit is contained in:
parent
7d4e7da3ac
commit
7bd38d93f0
@ -625,7 +625,26 @@ bool x11_alive(void *data)
|
||||
break;
|
||||
|
||||
case ButtonPress:
|
||||
x_input_poll_wheel(&event.xbutton, true);
|
||||
switch (event.xbutton.button)
|
||||
{
|
||||
case 1: /* Left click */
|
||||
#if 0
|
||||
RARCH_LOG("Click occurred : [%d, %d]\n",
|
||||
event.xbutton.x_root,
|
||||
event.xbutton.y_root);
|
||||
#endif
|
||||
break;
|
||||
case 2: /* Grabbed */
|
||||
/* Middle click */
|
||||
break;
|
||||
case 3: /* Right click */
|
||||
break;
|
||||
case 4: /* Grabbed */
|
||||
/* Scroll up */
|
||||
case 5: /* Scroll down */
|
||||
x_input_poll_wheel(&event.xbutton, true);
|
||||
break;
|
||||
}
|
||||
break;
|
||||
|
||||
case ButtonRelease:
|
||||
|
Loading…
Reference in New Issue
Block a user