HW: Don't be responsible for g_controller_interface
Currently, `g_controller_interface` is initialized and shut down by each of `GCKeyboard`, `GCPad`, `Wiimote`, and `HotkeyManager`. This 1) is weird conceptually, because it necessitates passing a pointer to the native window to each of those classes, which don't need it, and 2) can cause issues when controller backends are initialized or shutdown multiple times in succession.
This commit is contained in:
1 parent
183f3c3759
commit
a082e9324f
10 files changed
+24
-36
No files matched your search
@@ -12,7 +12,7 @@ struct KeyboardStatus;
|
||||
namespace Keyboard
|
||||
{
|
||||
void Shutdown();
|
||||
void Initialize(void* const hwnd);
|
||||
void Initialize();
|
||||
void LoadConfig();
|
||||
|
||||
InputConfig* GetConfig();
|
||||
|
||||
Reference in new issue
Block a user