mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 01:45:38 +08:00
Add method to get joystick button name including a device prefix
This commit is contained in:
committed by
Mat Sutcliffe
parent
e5c435f281
commit
68907258a5
@@ -89,5 +89,20 @@ namespace BlackMisc
|
||||
}
|
||||
return sl.join('+');
|
||||
}
|
||||
|
||||
QString CHotkeyCombination::asStringWithDeviceNames() const
|
||||
{
|
||||
QStringList sl;
|
||||
sl.reserve(m_keyboardKeys.size() + m_joystickButtons.size());
|
||||
for (const auto &key : m_keyboardKeys)
|
||||
{
|
||||
sl << key.toQString();
|
||||
}
|
||||
for (const auto &button : m_joystickButtons)
|
||||
{
|
||||
sl << button.getButtonAsStringWithDeviceName();
|
||||
}
|
||||
return sl.join('+');
|
||||
}
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
Reference in New Issue
Block a user