Differences between current version and previous revision of SDL_JoystickGetAxis(3).
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 2 | Last edited on Monday, June 3, 2002 6:53:44 pm | by perry | |
Older page: | version 1 | Last edited on Monday, June 3, 2002 6:53:44 pm | by perry | Revert |
@@ -1,6 +1,6 @@
-SDL_JoystickGetAxis
-!!!SDL_JoystickGetAxis
+SDL_!
JoystickGetAxis
+!!!SDL_!
JoystickGetAxis
NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
@@ -9,27 +9,27 @@
----
!!NAME
-SDL_JoystickGetAxis- Get the current state of an axis
+SDL_!
JoystickGetAxis- Get the current state of an axis
!!SYNOPSIS
__#include __
-__Sint16 SDL_JoystickGetAxis__(__SDL_Joystick *joystick,
+__Sint16 SDL_!
JoystickGetAxis__(__SDL_Joystick *joystick,
int axis__);
!!DESCRIPTION
-__SDL_JoystickGetAxis__ returns the current state of the
+__SDL_!
JoystickGetAxis__ returns the current state of the
given __axis__ on the given __joystick__.
On most modern joysticks the X axis is usually represented
by __axis__ 0 and the Y axis by __axis__ 1. The value
-returned by __SDL_JoystickGetAxis__ is a signed integer
+returned by __SDL_!
JoystickGetAxis__ is a signed integer
(-32768 to 32768) representing the current position of the
__axis__, it maybe necessary to impose certain tolerances
on these values to account for jitter. It is worth noting
that some joysticks use axes 2 and 3 for extra
@@ -45,11 +45,11 @@
Sint16 x_move, y_move;
SDL_Joystick *joy1;
.
.
-x_move=SDL_JoystickGetAxis(joy1, );
-y_move=SDL_JoystickGetAxis(joy1, 1);
+x_move=SDL_!
JoystickGetAxis(joy1, );
+y_move=SDL_!
JoystickGetAxis(joy1, 1);
!!SEE ALSO
-__SDL_JoystickNumAxes__
+__SDL_!
JoystickNumAxes__
----