codice
parent
9a986532b4
commit
938bf47bc0
|
|
@ -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)
|
||||
Loading…
Reference in New Issue