projects
/
vuplus_dvbapp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Support Uno4k/Ultimo4k
[vuplus_dvbapp]
/
lib
/
python
/
Components
/
InputDevice.py
diff --git
a/lib/python/Components/InputDevice.py
b/lib/python/Components/InputDevice.py
index
d675ca3
..
965a27f
100755
(executable)
--- a/
lib/python/Components/InputDevice.py
+++ b/
lib/python/Components/InputDevice.py
@@
-8,8
+8,8
@@
from os import path as os_path, listdir, open as os_open, close as os_close, wri
# asm-generic/ioctl.h
IOC_NRBITS = 8L
IOC_TYPEBITS = 8L
# asm-generic/ioctl.h
IOC_NRBITS = 8L
IOC_TYPEBITS = 8L
-IOC_SIZEBITS = 1
3
L
-IOC_DIRBITS =
3
L
+IOC_SIZEBITS = 1
4
L
+IOC_DIRBITS =
2
L
IOC_NRSHIFT = 0L
IOC_TYPESHIFT = IOC_NRSHIFT+IOC_NRBITS
IOC_NRSHIFT = 0L
IOC_TYPESHIFT = IOC_NRSHIFT+IOC_NRBITS
@@
-33,6
+33,9
@@
class inputDevices:
devices = listdir("/dev/input/")
for evdev in devices:
devices = listdir("/dev/input/")
for evdev in devices:
+ if not evdev.startswith("event"):
+ continue
+
try:
buffer = "\0"*512
self.fd = os_open("/dev/input/" + evdev, O_RDWR | O_NONBLOCK)
try:
buffer = "\0"*512
self.fd = os_open("/dev/input/" + evdev, O_RDWR | O_NONBLOCK)