X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FComponents%2FInputDevice.py;h=965a27ffe545c12a5bf02cc654279a7c921a4f58;hp=d675ca3a7249afacbc405ba282a515044313daf4;hb=4911a0121954f6b6657ba28fab8d9dd9031d9a59;hpb=7030e4d7bb27c16098b04526d0bfc72291459665 diff --git a/lib/python/Components/InputDevice.py b/lib/python/Components/InputDevice.py index d675ca3..965a27f 100755 --- 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 -IOC_SIZEBITS = 13L -IOC_DIRBITS = 3L +IOC_SIZEBITS = 14L +IOC_DIRBITS = 2L IOC_NRSHIFT = 0L IOC_TYPESHIFT = IOC_NRSHIFT+IOC_NRBITS @@ -33,6 +33,9 @@ class inputDevices: 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)