diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2024-06-11 19:13:54 -0500 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2024-06-15 12:41:25 -0500 |
| commit | 42e73547eb9135ca9a93399e7300f49a5a0620f1 (patch) | |
| tree | 93fe723e95b491aa6deb9b0fed6eae2f7d7fda1f /Source/Core/InputCommon/ControllerInterface/Xlib | |
| parent | 04c246d11f60719d20af67c230cfe0a866dcaf54 (diff) | |
ControllerInterface: Adjust sort priorities to ensure default keyboard-mouse device is first.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Xlib')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp | 5 | ||||
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp b/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp index e4b717e3af..383dd66f1c 100644 --- a/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp +++ b/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.cpp @@ -414,6 +414,11 @@ std::string KeyboardMouse::GetSource() const return std::string(SOURCE_NAME); } +int KeyboardMouse::GetSortPriority() const +{ + return DEFAULT_DEVICE_SORT_PRIORITY; +} + KeyboardMouse::Key::Key(Display* const display, KeyCode keycode, const char* keyboard) : m_display(display), m_keyboard(keyboard), m_keycode(keycode) { diff --git a/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h b/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h index 427c81b18a..f6fc108e10 100644 --- a/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h +++ b/Source/Core/InputCommon/ControllerInterface/Xlib/XInput2.h @@ -120,6 +120,7 @@ public: std::string GetName() const override; std::string GetSource() const override; + int GetSortPriority() const override; private: Window m_window; |
