CommonHostInterface: Add save state selector UI

This commit is contained in:
Connor McLaughlin
2020-04-21 02:50:57 +10:00
parent 7c2244f20f
commit 2a710798cc
7 changed files with 365 additions and 0 deletions

View File

@ -13,6 +13,10 @@
class ControllerInterface;
namespace FrontendCommon {
class SaveStateSelectorUI;
}
class CommonHostInterface : public HostInterface
{
public:
@ -72,6 +76,7 @@ protected:
virtual void OnSystemPaused(bool paused) override;
virtual void OnSystemDestroyed() override;
virtual void OnControllerTypeChanged(u32 slot) override;
virtual void DrawImGuiWindows() override;
virtual void SetDefaultSettings(SettingsInterface& si) override;
@ -115,6 +120,8 @@ private:
HotkeyInfoList m_hotkeys;
std::unique_ptr<FrontendCommon::SaveStateSelectorUI> m_save_state_selector_ui;
// input key maps
std::map<HostKeyCode, InputButtonHandler> m_keyboard_input_handlers;