mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 00:59:44 -06:00
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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user