Renamed Mouse::Count to Mouse::ButtonCount
Renamed Joy::Count to Joy::AxisCount Added Joy::Count and Joy::ButtonCount git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1328 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
e2d0ffcdcf
commit
db72c6e47c
10 changed files with 49 additions and 57 deletions
|
@ -160,7 +160,7 @@ namespace Mouse
|
|||
XButton1,
|
||||
XButton2,
|
||||
|
||||
Count // Keep last -- total number of mouse buttons
|
||||
ButtonCount // Keep last -- total number of mouse buttons
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -180,7 +180,13 @@ namespace Joy
|
|||
AxisV,
|
||||
AxisPOV,
|
||||
|
||||
Count // Keep last -- total number of joystick axis
|
||||
AxisCount // Keep last -- total number of joystick axis
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
Count = 4, ///< Total number of supported joysticks
|
||||
ButtonCount = 32 ///< Total number of supported joystick buttons
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -123,24 +123,15 @@ private :
|
|||
////////////////////////////////////////////////////////////
|
||||
void ResetStates();
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Joystick limits
|
||||
////////////////////////////////////////////////////////////
|
||||
enum
|
||||
{
|
||||
NbJoysticks = 4,
|
||||
NbJoystickButtons = 32
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Member data
|
||||
////////////////////////////////////////////////////////////
|
||||
bool myKeys[Key::Count]; ///< Array containing the state of all keyboard keys
|
||||
bool myMouseButtons[Mouse::Count]; ///< Array containing the state of all mouse buttons
|
||||
int myMouseX; ///< Mouse position on X
|
||||
int myMouseY; ///< Mouse position on Y
|
||||
bool myJoystickButtons[NbJoysticks][NbJoystickButtons]; ///< Array containing the state of all joysticks buttons
|
||||
float myJoystickAxis[NbJoysticks][Joy::Count]; ///< Joysticks position on each axis
|
||||
bool myKeys[Key::Count]; ///< Array containing the state of all keyboard keys
|
||||
bool myMouseButtons[Mouse::ButtonCount]; ///< Array containing the state of all mouse buttons
|
||||
int myMouseX; ///< Mouse position on X
|
||||
int myMouseY; ///< Mouse position on Y
|
||||
bool myJoystickButtons[Joy::Count][Joy::ButtonCount]; ///< Array containing the state of all joysticks buttons
|
||||
float myJoystickAxis[Joy::Count][Joy::AxisCount]; ///< Joysticks position on each axis
|
||||
};
|
||||
|
||||
} // namespace sf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue