codice
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
'''
|
||||
Created on 1 ott 2019
|
||||
|
||||
@author: Emanuele Trabattoni
|
||||
'''
|
||||
from evdev import InputDevice
|
||||
from select import select
|
||||
|
||||
dev = InputDevice('/dev/input/by-id/usb-0581_0106-event-kbd')
|
||||
dev.grab()
|
||||
while True:
|
||||
r,w,x = select([dev], [], [])
|
||||
for event in dev.read():
|
||||
print(event)
|
||||
|
||||
Reference in New Issue
Block a user