Searched refs:nhats (Results 1 – 12 of 12) sorted by relevance
46 int nhats; member132 int nhats; member553 joystick->nhats * sizeof(struct hwdata_hat)); in allocate_hatdata()557 for ( i=0; i<joystick->nhats; ++i ) { in allocate_hatdata()611 joystick->nhats = tmp_nhats; in JS_ConfigJoystick()622 joystick->nhats = special_joysticks[i].nhats; in JS_ConfigJoystick()644 joystick->nhats = tmp_nhats; in JS_ConfigJoystick()654 if ( joystick->nhats > 0 ) { in JS_ConfigJoystick()656 joystick->nhats = 0; in JS_ConfigJoystick()746 ++joystick->nhats; in EV_ConfigJoystick()[all …]
132 if ( joystick->nhats > 0 ) { in SDL_JoystickOpen()134 (joystick->nhats*sizeof(Uint8)); in SDL_JoystickOpen()145 || ((joystick->nhats > 0) && !joystick->hats) in SDL_JoystickOpen()159 joystick->nhats*sizeof(Uint8)); in SDL_JoystickOpen()241 return(joystick->nhats); in SDL_JoystickNumHats()295 if ( hat < joystick->nhats ) { in SDL_JoystickGetHat()298 SDL_SetError("Joystick only has %d hats", joystick->nhats); in SDL_JoystickGetHat()467 if (hat >= joystick->nhats) { in SDL_PrivateJoystickHat()
36 int nhats; /* Number of hats on the joystick */ member
125 joystick->nhats = stick->CountHats(); in SDL_SYS_JoystickOpen()130 SDL_malloc(joystick->nhats*sizeof(uint8)); in SDL_SYS_JoystickOpen()187 for ( i=0; i<joystick->nhats; ++i ) { in SDL_SYS_JoystickUpdate()
208 joystick->nhats = numHats; in SDL_SYS_JoystickOpen()245 for(i = 0; i < joystick->nhats; i++, j++) in SDL_SYS_JoystickUpdate()
100 joystick->nhats=0; in SDL_SYS_JoystickOpen()
240 joystick->nhats = 1; in SDL_SYS_JoystickOpen()242 joystick->nhats = 0; in SDL_SYS_JoystickOpen()
289 joy->nhats = 0;337 joy->nhats = 0;369 joy->nhats++;
418 joystick->nhats=0; in SDL_SYS_JoystickOpen()430 joystick->nhats=1; in SDL_SYS_JoystickOpen()440 joystick->nhats=1; in SDL_SYS_JoystickOpen()
66 joystick->nhats=0; in SDL_SYS_JoystickOpen()
102 joystick->nhats = MAX_HATS; in SDL_SYS_JoystickOpen()
710 joystick->nhats = device->hats; in SDL_SYS_JoystickOpen()