CommonHostInterface: Make input profile functions public
This commit is contained in:
parent
556cd6d168
commit
4540a190c1
|
@ -49,6 +49,13 @@ public:
|
||||||
|
|
||||||
using HotkeyInfoList = std::vector<HotkeyInfo>;
|
using HotkeyInfoList = std::vector<HotkeyInfo>;
|
||||||
|
|
||||||
|
struct InputProfileEntry
|
||||||
|
{
|
||||||
|
std::string name;
|
||||||
|
std::string path;
|
||||||
|
};
|
||||||
|
using InputProfileList = std::vector<InputProfileEntry>;
|
||||||
|
|
||||||
struct SaveStateInfo
|
struct SaveStateInfo
|
||||||
{
|
{
|
||||||
std::string path;
|
std::string path;
|
||||||
|
@ -100,6 +107,21 @@ public:
|
||||||
/// Parses command line parameters for all frontends.
|
/// Parses command line parameters for all frontends.
|
||||||
bool ParseCommandLineParameters(int argc, char* argv[], std::unique_ptr<SystemBootParameters>* out_boot_params);
|
bool ParseCommandLineParameters(int argc, char* argv[], std::unique_ptr<SystemBootParameters>* out_boot_params);
|
||||||
|
|
||||||
|
/// Returns a path where an input profile with the specified name would be saved.
|
||||||
|
std::string GetSavePathForInputProfile(const char* name) const;
|
||||||
|
|
||||||
|
/// Returns a list of all input profiles. first - name, second - path
|
||||||
|
InputProfileList GetInputProfileList() const;
|
||||||
|
|
||||||
|
/// Returns the path for an input profile.
|
||||||
|
std::string GetInputProfilePath(const char* name) const;
|
||||||
|
|
||||||
|
/// Applies the specified input profile.
|
||||||
|
void ApplyInputProfile(const char* profile_path, SettingsInterface& si);
|
||||||
|
|
||||||
|
/// Saves the current input configuration to the specified profile name.
|
||||||
|
bool SaveInputProfile(const char* profile_path, SettingsInterface& si);
|
||||||
|
|
||||||
/// Loads the current emulation state from file. Specifying a slot of -1 loads the "resume" game state.
|
/// Loads the current emulation state from file. Specifying a slot of -1 loads the "resume" game state.
|
||||||
bool LoadState(bool global, s32 slot);
|
bool LoadState(bool global, s32 slot);
|
||||||
|
|
||||||
|
@ -213,13 +235,6 @@ protected:
|
||||||
float duration;
|
float duration;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct InputProfileEntry
|
|
||||||
{
|
|
||||||
std::string name;
|
|
||||||
std::string path;
|
|
||||||
};
|
|
||||||
using InputProfileList = std::vector<InputProfileEntry>;
|
|
||||||
|
|
||||||
CommonHostInterface();
|
CommonHostInterface();
|
||||||
~CommonHostInterface();
|
~CommonHostInterface();
|
||||||
|
|
||||||
|
@ -257,21 +272,6 @@ protected:
|
||||||
/// Reloads the input map from config. Callable from controller interface.
|
/// Reloads the input map from config. Callable from controller interface.
|
||||||
virtual void UpdateInputMap() = 0;
|
virtual void UpdateInputMap() = 0;
|
||||||
|
|
||||||
/// Returns a path where an input profile with the specified name would be saved.
|
|
||||||
std::string GetSavePathForInputProfile(const char* name) const;
|
|
||||||
|
|
||||||
/// Returns a list of all input profiles. first - name, second - path
|
|
||||||
InputProfileList GetInputProfileList() const;
|
|
||||||
|
|
||||||
/// Returns the path for an input profile.
|
|
||||||
std::string GetInputProfilePath(const char* name) const;
|
|
||||||
|
|
||||||
/// Applies the specified input profile.
|
|
||||||
void ApplyInputProfile(const char* profile_path, SettingsInterface& si);
|
|
||||||
|
|
||||||
/// Saves the current input configuration to the specified profile name.
|
|
||||||
bool SaveInputProfile(const char* profile_path, SettingsInterface& si);
|
|
||||||
|
|
||||||
void RegisterHotkey(String category, String name, String display_name, InputButtonHandler handler);
|
void RegisterHotkey(String category, String name, String display_name, InputButtonHandler handler);
|
||||||
bool HandleHostKeyEvent(HostKeyCode code, bool pressed);
|
bool HandleHostKeyEvent(HostKeyCode code, bool pressed);
|
||||||
bool HandleHostMouseEvent(HostMouseButton button, bool pressed);
|
bool HandleHostMouseEvent(HostMouseButton button, bool pressed);
|
||||||
|
|
Loading…
Reference in New Issue