comparison include/SDL_events.h @ 577:f7596a8a3b8b

Fixed header docs for the joystick hat position
author Sam Lantinga <slouken@libsdl.org>
date Tue, 21 Jan 2003 05:33:34 +0000
parents 9154ec9ca3d2
children b8d311d90021
comparison
equal deleted inserted replaced
576:cd41dca47fff 577:f7596a8a3b8b
160 typedef struct { 160 typedef struct {
161 Uint8 type; /* SDL_JOYHATMOTION */ 161 Uint8 type; /* SDL_JOYHATMOTION */
162 Uint8 which; /* The joystick device index */ 162 Uint8 which; /* The joystick device index */
163 Uint8 hat; /* The joystick hat index */ 163 Uint8 hat; /* The joystick hat index */
164 Uint8 value; /* The hat position value: 164 Uint8 value; /* The hat position value:
165 8 1 2 165 SDL_HAT_LEFTUP SDL_HAT_UP SDL_HAT_RIGHTUP
166 7 0 3 166 SDL_HAT_LEFT SDL_HAT_CENTERED SDL_HAT_RIGHT
167 6 5 4 167 SDL_HAT_LEFTDOWN SDL_HAT_DOWN SDL_HAT_RIGHTDOWN
168 Note that zero means the POV is centered. 168 Note that zero means the POV is centered.
169 */ 169 */
170 } SDL_JoyHatEvent; 170 } SDL_JoyHatEvent;
171 171
172 /* Joystick button event structure */ 172 /* Joystick button event structure */