Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2010-03-18 01:34:32
Size: 1135
Editor: SheenaSmith
Comment: create page, add content (Rev 5540)
Revision 2 as of 2010-08-28 17:37:57
Size: 1448
Editor: SheenaSmith
Comment: update content (old wiki)
Deletions are marked like this. Additions are marked like this.
Line 31: Line 31:
<<Color2(green,Should the defines/descriptions for each be included here? Should it be a list instead of a 'table'?)>> <<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(green,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||
Line 42: Line 47:
 .[[SDL_JoystickNumHats]] *

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

a pointer to a structure containing joystick information ???

hat

the hat indices index; starts at index 0

Return Value

The return value is 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