diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2019-10-25 19:33:59 -0500 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2020-09-25 20:29:18 -0500 |
| commit | f015c99a5193400a9798616c0a265e5c66916c55 (patch) | |
| tree | 208cbf282429b08bcec09fca9562af87acc931fb /Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp | |
| parent | d2729df281485651cbc3c27e4c9419f43fe61408 (diff) | |
ControllerInterface: Add platform consistent names for modifier keys.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp b/Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp index 1e617d6c24..5aca9f5280 100644 --- a/Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp +++ b/Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp @@ -87,6 +87,11 @@ KeyboardMouse::KeyboardMouse(const LPDIRECTINPUTDEVICE8 kb_device, for (u8 i = 0; i < sizeof(named_keys) / sizeof(*named_keys); ++i) AddInput(new Key(i, m_state_in.keyboard[named_keys[i].code])); + // Add combined left/right modifiers with consistent naming across platforms. + AddCombinedInput("Alt", {"LMENU", "RMENU"}); + AddCombinedInput("Shift", {"LSHIFT", "RSHIFT"}); + AddCombinedInput("Ctrl", {"LCONTROL", "RCONTROL"}); + // MOUSE DIDEVCAPS mouse_caps = {}; mouse_caps.dwSize = sizeof(mouse_caps); |
