From 42e73547eb9135ca9a93399e7300f49a5a0620f1 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Tue, 11 Jun 2024 19:13:54 -0500 Subject: ControllerInterface: Adjust sort priorities to ensure default keyboard-mouse device is first. --- Source/Core/InputCommon/ControllerInterface/CoreDevice.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Source/Core/InputCommon/ControllerInterface/CoreDevice.h') diff --git a/Source/Core/InputCommon/ControllerInterface/CoreDevice.h b/Source/Core/InputCommon/ControllerInterface/CoreDevice.h index 5c7a8ed568..8dbbccf4b5 100644 --- a/Source/Core/InputCommon/ControllerInterface/CoreDevice.h +++ b/Source/Core/InputCommon/ControllerInterface/CoreDevice.h @@ -4,6 +4,7 @@ #pragma once #include +#include #include #include #include @@ -147,6 +148,7 @@ public: // A higher priority means it will be one of the first ones (smaller index), making it more // likely to be index 0, which is automatically set as the default device when there isn't one. // Every platform should have at least one device with priority >= 0. + static constexpr int DEFAULT_DEVICE_SORT_PRIORITY = std::numeric_limits::max(); virtual int GetSortPriority() const { return 0; } const std::vector& Inputs() const { return m_inputs; } -- cgit v1.2.3