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

  /external/qemu/distrib/sdl-1.2.12/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 127 joystick->hats = (Uint8 *)SDL_malloc
139 || ((joystick->nhats > 0) && !joystick->hats)
150 if ( joystick->hats ) {
151 SDL_memset(joystick->hats, 0,
232 * Get the number of hats on a joystick
294 state = joystick->hats[hat];
296 SDL_SetError("Joystick only has %d hats", joystick->nhats);
389 if ( joystick->hats ) {
390 SDL_free(joystick->hats);
449 joystick->hats[hat] = value
    [all...]
  /external/qemu/distrib/sdl-1.2.12/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.12/src/joystick/os2/
SDL_sysjoystick.c 45 #define MAX_HATS 0 /* 0 hats - OS/2 doesn't support it */
62 char hats; // Number of buttons member in struct:SYS_JoyData_s
91 unsigned int hats; member in struct:_joycfg
204 /* Define number of hats */
205 if (joycfg.hats > MAX_HATS) joycfg.hats = MAX_HATS;
206 SYS_JoyData[0].hats = joycfg.hats;
235 SYS_JoyData[0].hats = 0;
253 SYS_JoyData[1].hats = 0
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/joystick/linux/
SDL_sysjoystick.c 163 axes, hats, balls, buttons
274 /* The current linux joystick driver maps hats to two axes */
277 } *hats; member in struct:joystick_hwdata
484 hats or balls. Unfortunately, the event devices can't
539 joystick->hwdata->hats = (struct hwdata_hat *)SDL_malloc(
541 if ( joystick->hwdata->hats == NULL ) {
545 joystick->hwdata->hats[i].axis[0] = 1;
546 joystick->hwdata->hats[i].axis[1] = 1;
640 /* Remap hats and balls */
694 /* Skip hats */
    [all...]
  /external/qemu/distrib/sdl-1.2.12/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++)
818 if ( pos != joystick->hats[i] )
  /external/qemu/distrib/sdl-1.2.12/src/joystick/win32/
SDL_mmjoystick.c 287 if ( ! joystick->hats ) {
335 if ( pos != joystick->hats[0] ) {
  /external/qemu/distrib/sdl-1.2.12/src/joystick/macos/
SDL_sysjoystick.c 281 if ( pos != joystick->hats[i] ) {

Completed in 56 milliseconds