2016-09-17 17:38:46 -04:00
|
|
|
#!/bin/python
|
|
|
|
import time
|
|
|
|
|
|
|
|
input = {
|
|
|
|
'currInput': [],
|
|
|
|
'prevInput': [],
|
|
|
|
'prevDeepestInput': [],
|
|
|
|
'currEvent': None,
|
2016-09-18 07:11:22 -04:00
|
|
|
'eventBuffer': [],
|
2016-09-17 17:38:46 -04:00
|
|
|
'shortcutRepeat': 0,
|
2016-09-18 07:11:22 -04:00
|
|
|
'fenrirKey': ['KEY_FENRIR'],
|
2016-09-17 17:38:46 -04:00
|
|
|
'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,
|
|
|
|
}
|