This commit is contained in:
Roland Winklmeier
2018-10-01 16:41:38 +02:00
committed by Klaus Basan
parent 7e10ea2f64
commit 8ee428e7cf
2 changed files with 7 additions and 1 deletions

View File

@@ -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;