libretro: Add rumble interface

This commit is contained in:
Connor McLaughlin
2020-08-19 00:04:37 +10:00
parent c9c2c00c1a
commit de388d342f
3 changed files with 35 additions and 10 deletions

View File

@ -11,10 +11,7 @@ public:
LibretroHostInterface();
~LibretroHostInterface() override;
static void InitLogging();
static bool SetCoreOptions();
static bool HasCoreVariablesChanged();
static void InitDiskControlInterface();
void InitInterfaces();
ALWAYS_INLINE u32 GetResolutionScale() const { return g_settings.gpu_resolution_scale; }
@ -51,6 +48,12 @@ protected:
void CheckForSettingsChanges(const Settings& old_settings) override;
private:
bool SetCoreOptions();
bool HasCoreVariablesChanged();
void InitLogging();
void InitDiskControlInterface();
void InitRumbleInterface();
void LoadSettings();
void UpdateSettings();
void UpdateControllers();
@ -86,6 +89,9 @@ private:
bool m_hw_render_callback_valid = false;
bool m_using_hardware_renderer = false;
std::optional<u32> m_next_disc_index;
retro_rumble_interface m_rumble_interface = {};
bool m_rumble_interface_valid = false;
};
extern LibretroHostInterface g_libretro_host_interface;