equal
deleted
inserted
replaced
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 */ |