HomeSort by relevance Sort by last modified time
    Searched defs:joystick (Results 1 - 3 of 3) sorted by null

  /external/qemu/distrib/sdl-1.2.15/test/
testjoystick.c 2 /* Simple program to test the SDL joystick routines */
13 void WatchJoystick(SDL_Joystick *joystick)
22 /* Set a video mode to display joystick axis position */
29 /* Print info about the joystick we are watching */
30 name = SDL_JoystickName(SDL_JoystickIndex(joystick));
31 printf("Watching joystick %d: (%s)\n", SDL_JoystickIndex(joystick),
32 name ? name : "Unknown Joystick");
33 printf("Joystick has %d axes, %d hats, %d balls, and %d buttons\n",
34 SDL_JoystickNumAxes(joystick), SDL_JoystickNumHats(joystick)
150 SDL_Joystick *joystick; local
    [all...]
  /external/qemu/distrib/sdl-1.2.15/src/joystick/beos/
SDL_bejoystick.cc 26 /* This is the system specific header for the SDL joystick API */
29 #include <be/device/Joystick.h>
45 /* The private structure used to keep track of a joystick */
54 * joysticks. Joystick 0 should be the system default joystick.
59 BJoystick joystick; local
66 nports = joystick.CountDevices();
71 if ( joystick.GetDeviceName(i, name) == B_OK ) {
72 if ( joystick.Open(name) != B_ERROR ) {
74 joystick.GetControllerName(&stick_name)
    [all...]
  /external/qemu/distrib/sdl-1.2.15/src/joystick/
SDL_joystick.c 24 /* This is the joystick API for Simple DirectMedia Layer */
75 * Get the implementation dependent name of a joystick
88 * Open a joystick for use - the index passed as an argument refers to
89 * the N'th joystick on the system. This index is the value which will
90 * identify this joystick in future joystick events.
92 * This function returns a joystick identifier, or NULL if an error occurred.
97 SDL_Joystick *joystick; local
105 /* If the joystick is already open, return it */
108 joystick = SDL_joysticks[i]
    [all...]

Completed in 79 milliseconds