Replaced GetAxesCount() with HasAxis().

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1321 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
ceylo 2010-01-05 18:10:29 +00:00
parent 63867b654c
commit 42b97d230f
2 changed files with 9 additions and 8 deletions

View File

@ -55,12 +55,11 @@ JoystickState Joystick::UpdateState()
////////////////////////////////////////////////////////////
/// Get the number of axes supported by the joystick
/// Check if the joystick supports the given axis
////////////////////////////////////////////////////////////
unsigned int Joystick::GetAxesCount() const
bool Joystick::HasAxis(Joy::Axis Axis) const
{
// Return number of supported axes
return 0;
return false;
}

View File

@ -58,13 +58,15 @@ public :
JoystickState UpdateState();
////////////////////////////////////////////////////////////
/// Get the number of axes supported by the joystick
/// Check if the joystick supports the given axis
///
/// \return Number of axis
/// \param Axis : Axis to check
///
/// \return True of the axis is supported, false otherwise
///
////////////////////////////////////////////////////////////
unsigned int GetAxesCount() const;
bool HasAxis(Joy::Axis Axis) const;
////////////////////////////////////////////////////////////
/// Get the number of buttons supported by the joystick
///