ControllerInterface: Update sort priorities.

This commit is contained in:
Jordan Woyak 2022-03-02 15:40:20 -06:00
parent 076a262b9e
commit 566dfc1cf4
5 changed files with 6 additions and 4 deletions

View File

@ -64,7 +64,7 @@ public:
std::string GetName() const override; std::string GetName() const override;
std::string GetSource() const override; std::string GetSource() const override;
int GetSortPriority() const override { return -2; } int GetSortPriority() const override { return -3; }
bool IsValid() const final override; bool IsValid() const final override;

View File

@ -136,7 +136,7 @@ public:
std::string GetSource() const final override; std::string GetSource() const final override;
std::optional<int> GetPreferredId() const final override; std::optional<int> GetPreferredId() const final override;
// Always add these at the end, given their hotplug nature // Always add these at the end, given their hotplug nature
int GetSortPriority() const override { return -4; } int GetSortPriority() const override { return -5; }
private: private:
void ResetPadData(); void ResetPadData();

View File

@ -172,6 +172,8 @@ public:
} }
} }
int GetSortPriority() const override { return -1; }
private: private:
// `boolean` comes from Windows API. (typedef of unsigned char) // `boolean` comes from Windows API. (typedef of unsigned char)
using ButtonValueType = boolean; using ButtonValueType = boolean;

View File

@ -323,7 +323,7 @@ std::string Device::GetSource() const
// Always add these at the end, given their hotplug nature // Always add these at the end, given their hotplug nature
int Device::GetSortPriority() const int Device::GetSortPriority() const
{ {
return -3; return -4;
} }
void Device::RunTasks() void Device::RunTasks()

View File

@ -31,7 +31,7 @@ public:
std::string GetName() const override; std::string GetName() const override;
std::string GetSource() const override; std::string GetSource() const override;
std::optional<int> GetPreferredId() const override; std::optional<int> GetPreferredId() const override;
int GetSortPriority() const override { return -1; } int GetSortPriority() const override { return -2; }
void UpdateInput() override; void UpdateInput() override;