Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2010-03-16 20:27:32
Size: 978
Editor: SheenaSmith
Comment: create page, add content (Rev 5540)
Revision 2 as of 2010-03-18 01:53:09
Size: 1003
Editor: SheenaSmith
Comment: added RF
Deletions are marked like this. Additions are marked like this.
Line 30: Line 30:
 .[[SDL_JoystickClose]]

DRAFT

SDL_JoystickOpen

Use this function to open a joystick for use.

Syntax

SDL_Joystick* SDL_JoystickOpen(int device_index)

Function Parameters

device_index

the index of the joystick to query

Return Value

A joystick identifier, or NULL if an error occurred.

Code Examples

You can add your code example here

Remarks

The index passed as an argument refers to the N'th joystick on the system. This index is the value which will identify this joystick in future joystick events. green


CategoryAPI, CategoryJoystick

None: SDL_JoystickOpen (last edited 2015-05-31 18:48:51 by PhilippWiesemann)

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