Home
last modified time | relevance | path

Searched refs:nhats (Results 1 – 12 of 12) sorted by relevance

/external/qemu/distrib/sdl-1.2.15/src/joystick/linux/
DSDL_sysjoystick.c46 int nhats; member
132 int nhats; member
553 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 …]
/external/qemu/distrib/sdl-1.2.15/src/joystick/
DSDL_joystick.c132 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()
DSDL_sysjoystick.h36 int nhats; /* Number of hats on the joystick */ member
/external/qemu/distrib/sdl-1.2.15/src/joystick/beos/
DSDL_bejoystick.cc125 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()
/external/qemu/distrib/sdl-1.2.15/src/joystick/macos/
DSDL_sysjoystick.c208 joystick->nhats = numHats; in SDL_SYS_JoystickOpen()
245 for(i = 0; i < joystick->nhats; i++, j++) in SDL_SYS_JoystickUpdate()
/external/qemu/distrib/sdl-1.2.15/src/joystick/riscos/
DSDL_sysjoystick.c100 joystick->nhats=0; in SDL_SYS_JoystickOpen()
/external/qemu/distrib/sdl-1.2.15/src/joystick/win32/
DSDL_mmjoystick.c240 joystick->nhats = 1; in SDL_SYS_JoystickOpen()
242 joystick->nhats = 0; in SDL_SYS_JoystickOpen()
/external/qemu/distrib/sdl-1.2.15/src/joystick/bsd/
DSDL_sysjoystick.c289 joy->nhats = 0;
337 joy->nhats = 0;
369 joy->nhats++;
/external/qemu/distrib/sdl-1.2.15/src/joystick/mint/
DSDL_sysjoystick.c418 joystick->nhats=0; in SDL_SYS_JoystickOpen()
430 joystick->nhats=1; in SDL_SYS_JoystickOpen()
440 joystick->nhats=1; in SDL_SYS_JoystickOpen()
/external/qemu/distrib/sdl-1.2.15/src/joystick/nds/
DSDL_sysjoystick.c66 joystick->nhats=0; in SDL_SYS_JoystickOpen()
/external/qemu/distrib/sdl-1.2.15/src/joystick/dc/
DSDL_sysjoystick.c102 joystick->nhats = MAX_HATS; in SDL_SYS_JoystickOpen()
/external/qemu/distrib/sdl-1.2.15/src/joystick/darwin/
DSDL_sysjoystick.c710 joystick->nhats = device->hats; in SDL_SYS_JoystickOpen()