HomeSort by relevance Sort by last modified time
    Searched refs:hats (Results 1 - 7 of 7) sorted by null

  /external/qemu/distrib/sdl-1.2.15/src/joystick/
SDL_sysjoystick.h 36 int nhats; /* Number of hats on the joystick */
37 Uint8 *hats; /* Current hat states */ member in struct:_SDL_Joystick
SDL_joystick.c 133 joystick->hats = (Uint8 *)SDL_malloc
145 || ((joystick->nhats > 0) && !joystick->hats)
157 if ( joystick->hats ) {
158 SDL_memset(joystick->hats, 0,
234 * Get the number of hats on a joystick
296 state = joystick->hats[hat];
298 SDL_SetError("Joystick only has %d hats", joystick->nhats);
388 if ( joystick->hats ) {
389 SDL_free(joystick->hats);
472 joystick->hats[hat] = value
    [all...]
  /external/qemu/distrib/sdl-1.2.15/src/joystick/beos/
SDL_bejoystick.cc 122 /* Get the number of buttons, hats, and axes on the joystick */
164 uint8 *hats; local
170 hats = joystick->hwdata->new_hats;
175 stick->GetHatValues(hats);
188 if ( hats[i] != joystick->hats[i] ) {
189 SDL_PrivateJoystickHat(joystick, i, hat_map[hats[i]]);
  /external/qemu/distrib/sdl-1.2.15/src/joystick/linux/
SDL_sysjoystick.c 166 axes, hats, balls, buttons
277 /* The current linux joystick driver maps hats to two axes */
280 } *hats; member in struct:joystick_hwdata
497 hats or balls. Unfortunately, the event devices can't
552 joystick->hwdata->hats = (struct hwdata_hat *)SDL_malloc(
554 if ( joystick->hwdata->hats == NULL ) {
558 joystick->hwdata->hats[i].axis[0] = 1;
559 joystick->hwdata->hats[i].axis[1] = 1;
652 /* Remap hats and balls */
706 /* Skip hats */
    [all...]
  /external/qemu/distrib/sdl-1.2.15/src/joystick/darwin/
SDL_sysjoystick.c 87 long hats; /* number of hat switches (calculated, not reported by device) */ member in struct:joystick_hwdata
328 pDevice->hats++;
710 joystick->nhats = device->hats;
742 for (i = 0; i < device->hats; i++)
819 if ( pos != joystick->hats[i] )
  /external/qemu/distrib/sdl-1.2.15/src/joystick/win32/
SDL_mmjoystick.c 287 if ( ! joystick->hats ) {
335 if ( pos != joystick->hats[0] ) {
  /external/qemu/distrib/sdl-1.2.15/src/joystick/macos/
SDL_sysjoystick.c 281 if ( pos != joystick->hats[i] ) {

Completed in 139 milliseconds