diff options
| author | JMC47 <JMC4789@gmail.com> | 2022-07-11 16:28:30 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-11 16:28:30 -0400 |
| commit | b2be9b40ccdd3ab6b71fc5f124404148fb16a5f4 (patch) | |
| tree | 176104c39c1d4e9ba9416ea6ad08d1d468669edd /Source/Core/InputCommon/ControllerInterface/Win32 | |
| parent | 99eef447651d40ed1954ccd5a83557478546face (diff) | |
| parent | 54b4ad8f559d6fa16bf0ca15f91de4e7d103996f (diff) | |
Merge pull request #10561 from shuffle2/sdl-motion
ControllerInterface: Add support for motion and rumble to SDL backend
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Win32')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/Win32/Win32.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Win32/Win32.cpp b/Source/Core/InputCommon/ControllerInterface/Win32/Win32.cpp index a9c28efdc0..42aa12a141 100644 --- a/Source/Core/InputCommon/ControllerInterface/Win32/Win32.cpp +++ b/Source/Core/InputCommon/ControllerInterface/Win32/Win32.cpp @@ -73,11 +73,13 @@ void ciface::Win32::Init(void* hwnd) } Common::ScopeGuard uninit([] { CoUninitialize(); }); + const auto window_name = TEXT("DolphinWin32ControllerInterface"); + WNDCLASSEX window_class_info{}; window_class_info.cbSize = sizeof(window_class_info); window_class_info.lpfnWndProc = WindowProc; window_class_info.hInstance = GetModuleHandle(nullptr); - window_class_info.lpszClassName = L"Message"; + window_class_info.lpszClassName = window_name; ATOM window_class = RegisterClassEx(&window_class_info); if (!window_class) @@ -92,7 +94,7 @@ void ciface::Win32::Init(void* hwnd) Common::HRWrap(GetLastError())); }); - message_window = CreateWindowEx(0, L"Message", nullptr, 0, 0, 0, 0, 0, HWND_MESSAGE, nullptr, + message_window = CreateWindowEx(0, window_name, nullptr, 0, 0, 0, 0, 0, HWND_MESSAGE, nullptr, nullptr, nullptr); promise_guard.Exit(); if (!message_window) |
