Wiki Page Content

Revision 1 as of 2010-03-17 18:21:44

Clear message

DRAFT

SDL_JoystickEventState

Use this function to enable/disable joystick event polling.

Syntax

int SDL_JoystickEventState(int state)

Function Parameters

state

can be one of SDL_QUERY, SDL_ENABLE or SDL_IGNORE

green

Return Value

Returns 1 if enabled, 0 if disabled, or a negative error code on failure; call SDL_GetError() for more information.

Code Examples

You can add your code example here

Remarks

If joystick events are disabled, you must call SDL_JoystickUpdate() yourself and to manually? check the state of the joystick when you want joystick information.


CategoryAPI, CategoryJoystick

Feedback
Please include your contact information if you'd like to receive a reply.
Submit