1SDL_JoystickGetButton(3) SDL API Reference SDL_JoystickGetButton(3)
23
4
NAME
6SDL_JoystickGetButton- Get the current state of a given button on a
7given joystick
8
SYNOPSIS
10#include "SDL.h"
1112
Uint8 SDL_JoystickGetButton(SDL_Joystick *joystick, int button);
13
DESCRIPTION
15SDL_JoystickGetButton returns the current state of the given button on
16the given joystick.
17
RETURN VALUE
191 if the button is pressed. Otherwise, 0.
20
SEE ALSO
22SDL_JoystickNumButtons
2324
25
26
SDL Tue 11 Sep 2001, 23:00 SDL_JoystickGetButton(3)