Unified toggle keys, fixed ctrl, shit, alt logic

This commit is contained in:
2022-08-30 17:17:35 -05:00
parent b04840b458
commit 0a2e258766
6 changed files with 62 additions and 105 deletions

View File

@@ -8,6 +8,7 @@ from utils.pyautogui_control import ControlMixin
# NOTE: Threads WILL NOT die with parent's destruction.
def threaded_wrapper(fn):
def wrapper(*args, **kwargs):
@@ -37,9 +38,13 @@ class EndpointRegistry():
def get_endpoints(self):
return self._endpoints
class Pyautogui_Controller(ControlMixin):
def __init__(self):
pass
self.isCtrlOn = False
self.isShiftOn = False
self.isAltOn = False
@@ -66,6 +71,7 @@ keys_json = {
# NOTE: Just reminding myself we can add to builtins two different ways...
# __builtins__.update({"event_system": Builtins()})
builtins.app_name = "Mouse Keyboard"