improve performance

This commit is contained in:
chrys 2016-09-25 22:36:16 +02:00
parent e3bdc1a564
commit 4b8b410a1a

View File

@ -120,18 +120,18 @@ class inputManager():
def getPrevDeepestInput(self): def getPrevDeepestInput(self):
shortcut = [] shortcut = []
shortcut.append(self.env['input']['shortcutRepeat']) shortcut.append(self.env['input']['shortcutRepeat'])
shortcut.append(sorted(self.env['input']['prevDeepestInput'])) shortcut.append(self.env['input']['prevDeepestInput'])
def getPrevShortcut(self): def getPrevShortcut(self):
shortcut = [] shortcut = []
shortcut.append(self.env['input']['shortcutRepeat']) shortcut.append(self.env['input']['shortcutRepeat'])
shortcut.append(sorted(self.env['input']['prevInput'])) shortcut.append(self.env['input']['prevInput'])
return str(shortcut) return str(shortcut)
def getCurrShortcut(self): def getCurrShortcut(self):
shortcut = [] shortcut = []
shortcut.append(self.env['input']['shortcutRepeat']) shortcut.append(self.env['input']['shortcutRepeat'])
shortcut.append(sorted(self.env['input']['currInput'])) shortcut.append(self.env['input']['currInput'])
return str(shortcut) return str(shortcut)
def isFenrirKey(self, eventName): def isFenrirKey(self, eventName):