1SDL_JoystickGetButton(3)       SDL API Reference      SDL_JoystickGetButton(3)
2
3
4

NAME

6       SDL_JoystickGetButton-  Get  the  current  state of a given button on a
7       given joystick
8

SYNOPSIS

10       #include "SDL.h"
11
12       Uint8 SDL_JoystickGetButton(SDL_Joystick *joystick, int button);
13

DESCRIPTION

15       SDL_JoystickGetButton returns the current state of the given button  on
16       the given joystick.
17

RETURN VALUE

19       1 if the button is pressed. Otherwise, 0.
20

SEE ALSO

22       SDL_JoystickNumButtons
23
24
25
26SDL                         Tue 11 Sep 2001, 23:00    SDL_JoystickGetButton(3)
Impressum