Increased the performance of the hotkey code by:

* Halving the number of hotkeys checked for (there were extra for future use)
* Gets the controller status once before parsing hotkeys
* Checks for the GUI lock once before parsing hotkeys
* Removed some redundant memsets
This commit is contained in:
skidau
2015-03-01 07:43:34 +11:00
parent d2abbcd353
commit a83d27b9c2
3 changed files with 26 additions and 24 deletions

View File

@ -24,7 +24,7 @@ public:
void LoadDefaults(const ControllerInterface& ciface);
private:
Buttons* m_keys[6];
Buttons* m_keys[3];
ControlGroup* m_options;
};
@ -34,6 +34,7 @@ namespace HotkeyManagerEmu
void Shutdown();
InputConfig* GetConfig();
void GetStatus(u8 _port, HotkeyStatus* _pKeyboardStatus);
void GetStatus();
bool IsReady();
bool IsPressed(int Id, bool held);
}