From 1456a2f2f39f37f65d35fecd779792907a87da9e Mon Sep 17 00:00:00 2001 From: chrys Date: Wed, 19 Oct 2016 19:52:36 +0200 Subject: [PATCH] restore traceEvent --- play zone/errorOnBrokenDevice.py | 1 + tools/traceEvdev.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/play zone/errorOnBrokenDevice.py b/play zone/errorOnBrokenDevice.py index c70bac59..05955dbb 100755 --- a/play zone/errorOnBrokenDevice.py +++ b/play zone/errorOnBrokenDevice.py @@ -2,3 +2,4 @@ # in case that event13 is still the broken device f = open('/dev/input/event13') +print('OK /dev/input/event13') diff --git a/tools/traceEvdev.py b/tools/traceEvdev.py index e6c044f0..3988953c 100755 --- a/tools/traceEvdev.py +++ b/tools/traceEvdev.py @@ -4,8 +4,7 @@ from evdev import InputDevice from select import select import time -#devices = map(evdev.InputDevice, (evdev.list_devices())) -devices = map(evdev.InputDevice, (['/dev/input/event0','/dev/input/event1','/dev/input/event10','/dev/input/event11','/dev/input/event12','/dev/input/event14','/dev/input/event15','/dev/input/event2','/dev/input/event3','/dev/input/event4','/dev/input/event5','/dev/input/event7','/dev/input/event8','/dev/input/event9'])) +devices = map(evdev.InputDevice, (evdev.list_devices())) devices = {dev.fd: dev for dev in devices} while True: