Searched refs:hats (Results 1 – 11 of 11) sorted by relevance
164 uint8 *hats; in SDL_SYS_JoystickUpdate() local170 hats = joystick->hwdata->new_hats; in SDL_SYS_JoystickUpdate()175 stick->GetHatValues(hats); in SDL_SYS_JoystickUpdate()188 if ( hats[i] != joystick->hats[i] ) { in SDL_SYS_JoystickUpdate()189 SDL_PrivateJoystickHat(joystick, i, hat_map[hats[i]]); in SDL_SYS_JoystickUpdate()
127 joystick->hats = (Uint8 *)SDL_malloc in SDL_JoystickOpen()139 || ((joystick->nhats > 0) && !joystick->hats) in SDL_JoystickOpen()150 if ( joystick->hats ) { in SDL_JoystickOpen()151 SDL_memset(joystick->hats, 0, in SDL_JoystickOpen()294 state = joystick->hats[hat]; in SDL_JoystickGetHat()389 if ( joystick->hats ) { in SDL_JoystickClose()390 SDL_free(joystick->hats); in SDL_JoystickClose()449 joystick->hats[hat] = value; in SDL_PrivateJoystickHat()
37 Uint8 *hats; /* Current hat states */ member
62 char hats; // Number of buttons member91 unsigned int hats; member205 if (joycfg.hats > MAX_HATS) joycfg.hats = MAX_HATS; in SDL_SYS_JoystickInit()206 SYS_JoyData[0].hats = joycfg.hats; in SDL_SYS_JoystickInit()235 SYS_JoyData[0].hats = 0; in SDL_SYS_JoystickInit()253 SYS_JoyData[1].hats = 0; in SDL_SYS_JoystickInit()272 SYS_JoyData[0].hats = 0; in SDL_SYS_JoystickInit()288 SYS_JoyData[0].hats = 0; in SDL_SYS_JoystickInit()629 joydata->hats = atoi(tempnumber); in joyGetEnv()
277 } *hats; member539 joystick->hwdata->hats = (struct hwdata_hat *)SDL_malloc( in allocate_hatdata()541 if ( joystick->hwdata->hats == NULL ) { in allocate_hatdata()545 joystick->hwdata->hats[i].axis[0] = 1; in allocate_hatdata()546 joystick->hwdata->hats[i].axis[1] = 1; in allocate_hatdata()924 SDL_logical_joydecl(struct joystick_logical_mapping* hats = NULL); in HandleHat()926 the_hat = &stick->hwdata->hats[hat]; in HandleHat()946 hats = SDL_joylist[stick->index].map->hatmap+hat; in HandleHat()947 logicaljoy = FindLogicalJoystick(stick, hats); in HandleHat()952 hat = hats->nthing; in HandleHat()[all …]
87 long hats; /* number of hat switches (calculated, not reported by device) */ member328 pDevice->hats++; in HIDAddElement()710 joystick->nhats = device->hats; in SDL_SYS_JoystickOpen()742 for (i = 0; i < device->hats; i++) in SDL_SYS_JoystickUpdate()818 if ( pos != joystick->hats[i] ) in SDL_SYS_JoystickUpdate()
287 if ( ! joystick->hats ) { in SDL_SYS_JoystickUpdate()335 if ( pos != joystick->hats[0] ) { in SDL_SYS_JoystickUpdate()
281 if ( pos != joystick->hats[i] ) { in SDL_SYS_JoystickUpdate()
2542 N "hats" :G2P
12989 hats hats12991 hatzenbihler hats@nbilP
2860 N "hats" :G2P