Minor fixes in documentation related to joysticks
This commit is contained in:
parent
49c0208b2e
commit
2f9a47b463
@ -266,9 +266,9 @@ public :
|
||||
////////////////////////////////////////////////////////////
|
||||
struct JoyMoveEvent
|
||||
{
|
||||
unsigned int JoystickId; ///< Index of the joystick (0 or 1)
|
||||
unsigned int JoystickId; ///< Index of the joystick (in range [0 .. Joy::Count - 1])
|
||||
Joy::Axis Axis; ///< Axis on which the joystick moved
|
||||
float Position; ///< New position on the axis (in range [-100, 100])
|
||||
float Position; ///< New position on the axis (in range [-100 .. 100])
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
@ -278,8 +278,8 @@ public :
|
||||
////////////////////////////////////////////////////////////
|
||||
struct JoyButtonEvent
|
||||
{
|
||||
unsigned int JoystickId; ///< Index of the joystick (0 or 1)
|
||||
unsigned int Button; ///< Index of the button that has been pressed
|
||||
unsigned int JoystickId; ///< Index of the joystick (in range [0 .. Joy::Count - 1])
|
||||
unsigned int Button; ///< Index of the button that has been pressed (in range [0 .. Joy::ButtonCount - 1])
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
@ -75,8 +75,8 @@ public :
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Get the current state of a joystick button (pressed or released)
|
||||
///
|
||||
/// \param joystick Index of the joystick to test (0 or 1)
|
||||
/// \param button Index of the button to test
|
||||
/// \param joystick Index of the joystick to test (in range [0 .. Joy::Count - 1])
|
||||
/// \param button Index of the button to test (in range [0 .. Joy::ButtonCount - 1])
|
||||
///
|
||||
/// \return True if button is down, false if button is up
|
||||
///
|
||||
@ -108,10 +108,10 @@ public :
|
||||
////////////////////////////////////////////////////////////
|
||||
/// \brief Get the current position of a joystick axis
|
||||
///
|
||||
/// The returned position is in the range [-100, 100], except
|
||||
/// the POV which is an angle and is thus defined in [0, 360].
|
||||
/// The returned position is in the range [-100 .. 100], except
|
||||
/// the POV which is an angle and is thus defined in [0 .. 360].
|
||||
///
|
||||
/// \param joystick Index of the joystick to test (0 or 1)
|
||||
/// \param joystick Index of the joystick to test (in range [0 .. Joy::Count - 1])
|
||||
/// \param axis Axis to test
|
||||
///
|
||||
/// \return Current axis position
|
||||
|
Loading…
Reference in New Issue
Block a user