fenrir/src/fenrir-package/core/inputEvent.py

35 lines
585 B
Python
Raw Normal View History

2016-09-17 17:38:46 -04:00
#!/bin/python
# -*- coding: utf-8 -*-
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from core import debug
2016-09-17 17:38:46 -04:00
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,
'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,
}