Wiki Page Content

Differences between revisions 4 and 5
Revision 4 as of 2010-10-11 21:52:18
Size: 1536
Editor: SheenaSmith
Comment: update content - pointers, structs
Revision 5 as of 2013-09-01 18:55:30
Size: 1569
Comment: Updated usage of Color2 macro.
Deletions are marked like this. Additions are marked like this.
Line 20: Line 20:
<<Color2(green,Is it possible to use more than one index at the same time for '''hat'''?)>> <<Color2(col=green,text="Is it possible to use more than one index at the same time for '''hat'''?")>>
Line 33: Line 33:
<<Color2(green,Should the defines/descriptions for each be included here since the RV is actually a Uint8 or will the user never see those? Should it be a list instead of a table?)>> <<Color2(col=green,text="Should the defines/descriptions for each be included here since the RV is actually a Uint8 or will the user never see those? Should it be a list instead of a table?")>>
Line 35: Line 35:
<<Color2(green,Is this alternative table structure better?)>> <<Color2(col=green,text="Is this alternative table structure better?")>>

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

Is it possible to use more than one index at the same time for hat?

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

Should the defines/descriptions for each be included here since the RV is actually a Uint8 or will the user never see those? Should it be a list instead of a table?

Is this alternative table structure better?

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