mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
Qt/Core: Implement GBA Hotkeys
This commit is contained in:
@ -164,6 +164,19 @@ enum Hotkey
|
||||
HK_SAVE_STATE_FILE,
|
||||
HK_LOAD_STATE_FILE,
|
||||
|
||||
HK_GBA_LOAD,
|
||||
HK_GBA_UNLOAD,
|
||||
HK_GBA_RESET,
|
||||
|
||||
HK_GBA_VOLUME_DOWN,
|
||||
HK_GBA_VOLUME_UP,
|
||||
HK_GBA_TOGGLE_MUTE,
|
||||
|
||||
HK_GBA_1X,
|
||||
HK_GBA_2X,
|
||||
HK_GBA_3X,
|
||||
HK_GBA_4X,
|
||||
|
||||
NUM_HOTKEYS,
|
||||
};
|
||||
|
||||
@ -192,6 +205,9 @@ enum HotkeyGroup : int
|
||||
HKGP_SELECT_STATE,
|
||||
HKGP_LOAD_LAST_STATE,
|
||||
HKGP_STATE_MISC,
|
||||
HKGP_GBA_CORE,
|
||||
HKGP_GBA_VOLUME,
|
||||
HKGP_GBA_SIZE,
|
||||
|
||||
NUM_HOTKEY_GROUPS,
|
||||
};
|
||||
@ -208,7 +224,7 @@ public:
|
||||
HotkeyManager();
|
||||
~HotkeyManager();
|
||||
|
||||
void GetInput(HotkeyStatus* const hk);
|
||||
void GetInput(HotkeyStatus* hk, bool ignore_focus);
|
||||
std::string GetName() const override;
|
||||
ControllerEmu::ControlGroup* GetHotkeyGroup(HotkeyGroup group) const;
|
||||
int FindGroupByID(int id) const;
|
||||
@ -228,7 +244,7 @@ void LoadConfig();
|
||||
|
||||
InputConfig* GetConfig();
|
||||
ControllerEmu::ControlGroup* GetHotkeyGroup(HotkeyGroup group);
|
||||
void GetStatus();
|
||||
void GetStatus(bool ignore_focus);
|
||||
bool IsEnabled();
|
||||
void Enable(bool enable_toggle);
|
||||
bool IsPressed(int Id, bool held);
|
||||
|
Reference in New Issue
Block a user