2016-09-17 17:38:46 -04:00
|
|
|
#!/bin/python
|
|
|
|
import time
|
|
|
|
|
|
|
|
input = {
|
|
|
|
'currInput': [],
|
|
|
|
'prevInput': [],
|
|
|
|
'prevDeepestInput': [],
|
|
|
|
'currEvent': None,
|
|
|
|
'eventBuffer': None,
|
|
|
|
'shortcutRepeat': 0,
|
|
|
|
'fenrirKey': ['82'],
|
|
|
|
'keyForeward': False,
|
|
|
|
'lastInputTime':time.time(),
|
|
|
|
'oldNumLock': True,
|
|
|
|
'newNumLock':True,
|
2016-09-17 21:22:54 -04:00
|
|
|
'oldScrollLock': True,
|
|
|
|
'newScrollLock':True,
|
2016-09-17 17:38:46 -04:00
|
|
|
'oldCapsLock':False,
|
|
|
|
'newCapsLock':False
|
|
|
|
}
|
|
|
|
|
|
|
|
inputEvent = {
|
|
|
|
'EventName': '',
|
|
|
|
'EventValue': '',
|
|
|
|
'EventSec': 0,
|
|
|
|
'EventUsec': 0,
|
|
|
|
'EventState': 0,
|
|
|
|
}
|