Update evdevDriver.py
This commit is contained in:
parent
23f292dfa7
commit
5241bfa8ab
@ -64,7 +64,7 @@ class driver(inputDriver):
|
|||||||
devices = monitor.poll(2)
|
devices = monitor.poll(2)
|
||||||
if devices:
|
if devices:
|
||||||
while monitor.poll(0.5):
|
while monitor.poll(0.5):
|
||||||
time.sleep(0.2)
|
time.sleep(0.08)
|
||||||
eventQueue.put({"Type":fenrirEventType.PlugInputDevice,"Data":None})
|
eventQueue.put({"Type":fenrirEventType.PlugInputDevice,"Data":None})
|
||||||
return time.time()
|
return time.time()
|
||||||
def plugInputDeviceWatchdogTimer(self, active):
|
def plugInputDeviceWatchdogTimer(self, active):
|
||||||
@ -72,10 +72,10 @@ class driver(inputDriver):
|
|||||||
return time.time()
|
return time.time()
|
||||||
def inputWatchdog(self,active , params):
|
def inputWatchdog(self,active , params):
|
||||||
try:
|
try:
|
||||||
deviceFd = []
|
|
||||||
while self.watchDog.value == 0:
|
while self.watchDog.value == 0:
|
||||||
if active.value == 0:
|
if active.value == 0:
|
||||||
return
|
return
|
||||||
|
time.sleep(0.01)
|
||||||
r = []
|
r = []
|
||||||
while r == []:
|
while r == []:
|
||||||
if active.value == 0:
|
if active.value == 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user