diff options
| author | Léo Lam <leo@leolam.fr> | 2021-03-02 02:53:22 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-02 02:53:22 +0100 |
| commit | 59f416441155d62aac6d5ea73b6ac4b45bc87f93 (patch) | |
| tree | a5fae1ed89c97225e00a53488d4c9c8e196b8bde /Source/Core/InputCommon/InputConfig.h | |
| parent | 0c9f11af474f88d89af9a3dbe396fa65a2568deb (diff) | |
| parent | 32d584a0f5f58ff80ab9ad95ff3d1b10e30d108f (diff) | |
Merge pull request #9539 from iwubcode/dynamic_input_tex_more_optimizations
InputCommon: dynamic input textures more optimizations
Diffstat (limited to 'Source/Core/InputCommon/InputConfig.h')
| -rw-r--r-- | Source/Core/InputCommon/InputConfig.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/InputCommon/InputConfig.h b/Source/Core/InputCommon/InputConfig.h index 3d0a60dd73..29ec661f67 100644 --- a/Source/Core/InputCommon/InputConfig.h +++ b/Source/Core/InputCommon/InputConfig.h @@ -31,8 +31,7 @@ public: template <typename T, typename... Args> void CreateController(Args&&... args) { - OnControllerCreated( - *m_controllers.emplace_back(std::make_unique<T>(std::forward<Args>(args)...))); + m_controllers.emplace_back(std::make_unique<T>(std::forward<Args>(args)...)); } ControllerEmu::EmulatedController* GetController(int index); @@ -48,8 +47,9 @@ public: void RegisterHotplugCallback(); void UnregisterHotplugCallback(); + void GenerateControllerTextures(const IniFile& file); + private: - void OnControllerCreated(ControllerEmu::EmulatedController& controller); ControllerInterface::HotplugCallbackHandle m_hotplug_callback_handle; std::vector<std::unique_ptr<ControllerEmu::EmulatedController>> m_controllers; const std::string m_ini_name; |
