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

NAME

6       SDL_JoystickEventState - Enable/disable joystick event polling
7

SYNOPSIS

9       #include "SDL.h"
10
11       int SDL_JoystickEventState(int state);
12

DESCRIPTION

14       This  function  is used to enable or disable joystick event processing.
15       With joystick event processing disabled you will have  to  update  joy‐
16       stick  states with SDL_JoystickUpdate and read the joystick information
17       manually. state is either SDL_QUERY, SDL_ENABLE or SDL_IGNORE.
18
19              Note:
20
21              Joystick event handling is prefered
22

RETURN VALUE

24       If state is SDL_QUERY then the current state is returned, otherwise the
25       new processing state is returned.
26

SEE ALSO

28       SDL  Joystick Functions, SDL_JoystickUpdate, SDL_JoyAxisEvent, SDL_Joy‐
29       BallEvent, SDL_JoyButtonEvent, SDL_JoyHatEvent
30
31
32
33SDL                         Tue 11 Sep 2001, 22:59   SDL_JoystickEventState(3)
Impressum