From 8cc3eefd489abe041ab71e347efb2e04f0aa5e76 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Wed, 7 Mar 2018 10:20:46 +0100 Subject: [PATCH] cleanups --- src/fenrir/core/inputManager.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/fenrir/core/inputManager.py b/src/fenrir/core/inputManager.py index 896d742d..695917d7 100644 --- a/src/fenrir/core/inputManager.py +++ b/src/fenrir/core/inputManager.py @@ -44,8 +44,7 @@ class inputManager(): self.lastInputTime = time.time() elif eventData['EventState'] == 1: if not eventData['EventName'] in self.env['input']['currInput']: - if not eventData['EventName'] == 'KEY_RESERVED': - self.env['input']['currInput'].append(eventData['EventName']) + self.env['input']['currInput'].append(eventData['EventName']) if len(self.env['input']['currInput']) > 1: self.env['input']['currInput'] = sorted(self.env['input']['currInput']) if len(self.lastDeepestInput) < len(self.env['input']['currInput']): @@ -59,8 +58,7 @@ class inputManager(): self.lastInputTime = time.time() elif eventData['EventState'] == 2: self.lastInputTime = time.time() - else: - pass + self.env['input']['oldNumLock'] = self.env['input']['newNumLock'] self.env['input']['newNumLock'] = self.env['runtime']['inputDriver'].getLedState() self.env['input']['oldCapsLock'] = self.env['input']['newCapsLock']