mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
Style
This commit is contained in:
committed by
Klaus Basan
parent
7e10ea2f64
commit
8ee428e7cf
@@ -24,6 +24,12 @@ namespace BlackMisc
|
||||
m_buttonIndex = buttonIndex;
|
||||
}
|
||||
|
||||
bool CJoystickButton::isValid() const
|
||||
{
|
||||
if (!m_deviceName.isEmpty() && m_buttonIndex >= 0) { return true; }
|
||||
else { return false; }
|
||||
}
|
||||
|
||||
void CJoystickButton::setButtonObject(CJoystickButton button)
|
||||
{
|
||||
this->m_buttonIndex = button.m_buttonIndex;
|
||||
|
||||
Reference in New Issue
Block a user