Wiki Page Content

Differences between revisions 3 and 4
Revision 3 as of 2010-09-24 23:51:35
Size: 1440
Editor: SheenaSmith
Comment: minor change
Revision 4 as of 2010-10-11 21:52:18
Size: 1536
Editor: SheenaSmith
Comment: update content - pointers, structs
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:
||'''joystick'''||a pointer to a structure containing joystick information ???|| ||'''joystick'''||an SDL_Joystick structure containing joystick information ???||
Line 19: Line 19:

<<Color2(green,Is it possible to use more than one index at the same time for '''hat'''?)>>

DRAFT

SDL_JoystickGetHat

Use this function to get the current state of a POV hat on a joystick.

Syntax

Uint8 SDL_JoystickGetHat(SDL_Joystick* joystick,
                         int           hat)

Function Parameters

joystick

an SDL_Joystick structure containing joystick information ???

hat

the hat indices index; starts at index 0

green

Return Value

Returns one of the following positions:

SDL_HAT_CENTERED

SDL_HAT_UP

SDL_HAT_RIGHT

SDL_HAT_DOWN

SDL_HAT_LEFT

SDL_HAT_RIGHTUP

SDL_HAT_RIGHTDOWN

SDL_HAT_LEFTUP

SDL_HAT_LEFTDOWN

green

green

SDL_HAT_LEFTUP

SDL_HAT_UP

SDL_HAT_RIGHTUP

SDL_HAT_LEFT

SDL_HAT_CENTERED

SDL_HAT_RIGHT

SDL_HAT_LEFTDOWN

SDL_HAT_DOWN

SDL_HAT_RIGHTDOWN

Code Examples

You can add your code example here

Remarks

You can add useful comments here


CategoryAPI, CategoryJoystick

None: SDL_JoystickGetHat (last edited 2015-05-31 19:39:55 by PhilippWiesemann)

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