mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +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
@@ -19,6 +19,11 @@ namespace BlackMisc
|
||||
m_deviceName(deviceName), m_buttonIndex(index)
|
||||
{}
|
||||
|
||||
QString CJoystickButton::getButtonAsStringWithDeviceName() const
|
||||
{
|
||||
return QString("%1 Button%2").arg(m_deviceName).arg(m_buttonIndex);
|
||||
}
|
||||
|
||||
void CJoystickButton::setButtonIndex(int buttonIndex)
|
||||
{
|
||||
m_buttonIndex = buttonIndex;
|
||||
|
||||
Reference in New Issue
Block a user