projects
/
vuplus_xbmc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdff099
)
Touch Input: Fix for touch screen input in Linux to see presses as mouse clicks,...
author
Neal
<neal@nic-stix.com>
Sun, 4 Nov 2012 16:06:24 +0000
(11:06 -0500)
committer
Neal
<neal@nic-stix.com>
Sun, 4 Nov 2012 16:06:24 +0000
(11:06 -0500)
xbmc/input/linux/LinuxInputDevices.cpp
patch
|
blob
|
history
diff --git
a/xbmc/input/linux/LinuxInputDevices.cpp
b/xbmc/input/linux/LinuxInputDevices.cpp
index
f5d9080
..
f433165
100644
(file)
--- a/
xbmc/input/linux/LinuxInputDevices.cpp
+++ b/
xbmc/input/linux/LinuxInputDevices.cpp
@@
-540,6
+540,14
@@
bool CLinuxInputDevice::KeyEvent(const struct input_event& levt, XBMC_Event& dev
devt.button.button = XBMC_BUTTON_WHEELUP;
break;
+ case BTN_TOUCH:
+ devt.button.button = XBMC_BUTTON_LEFT;
+ break;
+
+ case BTN_TOOL_DOUBLETAP:
+ devt.button.button = XBMC_BUTTON_RIGHT;
+ break;
+
default:
CLog::Log(LOGWARNING, "CLinuxInputDevice::KeyEvent: Unknown mouse button code: %d\n", levt.code);
return false;