mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +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;
|
m_buttonIndex = buttonIndex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool CJoystickButton::isValid() const
|
||||||
|
{
|
||||||
|
if (!m_deviceName.isEmpty() && m_buttonIndex >= 0) { return true; }
|
||||||
|
else { return false; }
|
||||||
|
}
|
||||||
|
|
||||||
void CJoystickButton::setButtonObject(CJoystickButton button)
|
void CJoystickButton::setButtonObject(CJoystickButton button)
|
||||||
{
|
{
|
||||||
this->m_buttonIndex = button.m_buttonIndex;
|
this->m_buttonIndex = button.m_buttonIndex;
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ namespace BlackMisc
|
|||||||
void setButtonIndex(int buttonIndex);
|
void setButtonIndex(int buttonIndex);
|
||||||
|
|
||||||
//! Is valid?
|
//! Is valid?
|
||||||
bool isValid() const { return !m_deviceName.isEmpty() && m_buttonIndex >= 0 ? true : false; }
|
bool isValid() const;
|
||||||
|
|
||||||
//! Set button object
|
//! Set button object
|
||||||
void setButtonObject(CJoystickButton button);
|
void setButtonObject(CJoystickButton button);
|
||||||
|
|||||||
Reference in New Issue
Block a user