mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
ControllerInterface: Adjust sort priorities to ensure default keyboard-mouse device is first.
This commit is contained in:
@ -283,6 +283,11 @@ std::string KeyboardAndMouse::GetSource() const
|
||||
return Quartz::GetSourceName();
|
||||
}
|
||||
|
||||
int KeyboardAndMouse::GetSortPriority() const
|
||||
{
|
||||
return DEFAULT_DEVICE_SORT_PRIORITY;
|
||||
}
|
||||
|
||||
ControlState KeyboardAndMouse::Cursor::GetState() const
|
||||
{
|
||||
return std::max(0.0, ControlState(m_axis) / (m_positive ? 1.0 : -1.0));
|
||||
|
Reference in New Issue
Block a user