Added Joystick::GetAxisType() (#98)

This commit is contained in:
Tyler Veness
2016-08-07 08:19:19 -07:00
committed by Peter Johnson
parent 62a980d3c8
commit 6ef4745d86
4 changed files with 37 additions and 5 deletions

View File

@@ -284,10 +284,14 @@ std::string Joystick::GetName() const { return m_ds.GetJoystickName(m_port); }
*/
int Joystick::GetPort() const { return m_port; }
// int Joystick::GetAxisType(uint8_t axis) const
//{
// return m_ds.GetJoystickAxisType(m_port, axis);
//}
/**
* Get the axis type of a joystick axis.
*
* @return the axis type of a joystick axis.
*/
int Joystick::GetAxisType(int axis) const {
return m_ds.GetJoystickAxisType(m_port, axis);
}
/**
* Get the number of axis for a joystick.