From 5864ce2e2f7f42d00cf74e1045398221c67fb634 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Fri, 8 Jul 2016 11:24:34 +0200 Subject: [PATCH] change structure --- src/fenrir-package/core/inputManager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fenrir-package/core/inputManager.py b/src/fenrir-package/core/inputManager.py index e1130c96..12dbb59d 100644 --- a/src/fenrir-package/core/inputManager.py +++ b/src/fenrir-package/core/inputManager.py @@ -10,15 +10,15 @@ class inputManager(): self.devices = {dev.fd: dev for dev in self.devices} for dev in self.devices.values(): print(dev) - def getShortcutCommand(self, runtime, shortcuts): + def getShortcutCommand(self, environment, shortcuts): if not shortcuts: return '' return '' - def getKeyPressed(self, runtime): + def getKeyPressed(self, environment): r, w, x = select(self.devices, [], []) for fd in r: for event in self.devices[fd].read(): if event.type == evdev.ecodes.EV_KEY: print(evdev.categorize(event)) - return runtime + return environment