mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-11 16:49:28 +02:00
ControllerInterface: devices population is now async so implement devices sorting priority
This helps us keeping the most important devices (e.g. Mouse and Keyboard) on the top of the list of devices (they still are on all OSes supported by dolphin and to make hotplug devices like DSU appear at the bottom.
This commit is contained in:
@ -136,6 +136,8 @@ public:
|
||||
std::string GetName() const final override;
|
||||
std::string GetSource() const final override;
|
||||
std::optional<int> GetPreferredId() const final override;
|
||||
// Always add these at the end, given their hotplug nature
|
||||
int GetSortPriority() const override { return -2; }
|
||||
|
||||
private:
|
||||
void ResetPadData();
|
||||
|
Reference in New Issue
Block a user