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:
parent
63867b654c
commit
42b97d230f
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
@ -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
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user