continue rework of input handling
This commit is contained in:
		| @@ -11,7 +11,18 @@ class inputManager(): | ||||
|     def shutdown(self, environment): | ||||
|         return environment | ||||
|     def proceedInputEvent(self, environment): | ||||
|         timeout = True    	 | ||||
|         if not environment['input']['keyForeward']: | ||||
|             self.ignoreKeyRelease = 0     | ||||
|         environment, timeout = environment['runtime']['inputDriver'].getInput(environment) | ||||
|         environment['input']['currShortcutString'] = self.getShortcutString(environment) | ||||
|         if not timeout: | ||||
|             environment['input']['lastInputTime'] = time.time() | ||||
|             environment['input']['consumeKey'] = environment['input']['currShortcut'] != {} and environment['input']['consumeKey'] | ||||
|             if (environment['input']['keyForeward'] and environment['input']['currShortcut'] == {}): | ||||
|                 self.ignoreKeyRelease += 1 | ||||
|             if self.ignoreKeyRelease >= 2: # a hack... has to bee done more clean | ||||
|                 environment['input']['keyForeward'] = environment['input']['keyForeward'] and not environment['input']['currShortcut'] == {}         | ||||
|         return environment, timeout        | ||||
|     def grabDevices(self, environment): | ||||
|         environment['runtime']['inputDriver'].grabDevices(environment) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user