Sortix cross-nightly manual
This manual documents Sortix cross-nightly. You can instead view this document in the latest official manual.
SDL_JoystickGetAxis(3) | SDL API Reference | SDL_JoystickGetAxis(3) |
NAME
SDL_JoystickGetAxis - Get the current state of an axisSYNOPSIS
#include "SDL.h"DESCRIPTION
SDL_JoystickGetAxis returns the current state of the given axis on the given joystick.RETURN VALUE
Returns a 16-bit signed integer representing the current position of the axis.EXAMPLES
Sint16 x_move, y_move;
SDL_Joystick *joy1;
.
.
x_move=SDL_JoystickGetAxis(joy1, 0);
y_move=SDL_JoystickGetAxis(joy1, 1);
SEE ALSO
SDL_JoystickNumAxesTue 11 Sep 2001, 23:00 | SDL |