From 7bd38d93f0908d62c68b9db64832c63212b6ae2b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 1 Oct 2016 12:12:58 +0200 Subject: [PATCH] (X11) Cleanup x11_alive --- gfx/common/x11_common.c | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/gfx/common/x11_common.c b/gfx/common/x11_common.c index f1d4bf54c1..a950629460 100644 --- a/gfx/common/x11_common.c +++ b/gfx/common/x11_common.c @@ -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: