Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
SDL_JoyHatEvent(3)
Edit
PageHistory
Diff
Info
LikePages
SDL_!JoyHatEvent !!!SDL_!JoyHatEvent NAME STRUCTURE DEFINITION STRUCTURE DATA DESCRIPTION SEE ALSO ---- !!NAME SDL_!JoyHatEvent- Joystick hat position change event structure !!STRUCTURE DEFINITION typedef struct{ Uint8 type; Uint8 which; Uint8 hat; Uint8 value; } SDL_!JoyHatEvent; !!STRUCTURE DATA __type SDL_JOY__ __which__ Joystick device index __hat__ Joystick hat index __value__ Hat position !!DESCRIPTION __SDL_!JoyHatEvent__ is a member of the __SDL_Event__ union and is used when an event of type __SDL_JOYHATMOTION__ is reported. A __SDL_JOYHATMOTION__ event occurs when ever a user moves a hat on the joystick. The field __which__ is the index of the joystick that reported the event and __hat__ is the index of the hat (for a more detailed exlaination see the ''Joystick section''). __value__ is the current position of the hat. It is a logically OR'd combination of the following values (whose meanings should be pretty obvious:) : __SDL_HAT_CENTERED__ __SDL_HAT_UP__ __SDL_HAT_RIGHT__ __SDL_HAT_DOWN__ __SDL_HAT_LEFT__ The following defines are also provided: __SDL_HAT_RIGHTUP__ __SDL_HAT_RIGHTDOWN__ __SDL_HAT_LEFTUP__ __SDL_HAT_LEFTDOWN__ !!SEE ALSO __SDL_Event__, ''Joystick Functions'', __SDL_!JoystickEventState__, __SDL_!JoystickGetHat__ ----
One page links to
SDL_JoyHatEvent(3)
:
SDLManPages
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.