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

  /external/qemu/distrib/sdl-1.2.12/src/joystick/
SDL_joystick.c 24 /* This is the joystick API for Simple DirectMedia Layer */
74 * Get the implementation dependent name of a joystick
87 * Open a joystick for use - the index passed as an argument refers to
88 * the N'th joystick on the system. This index is the value which will
89 * identify this joystick in future joystick events.
91 * This function returns a joystick identifier, or NULL if an error occurred.
96 SDL_Joystick *joystick; local
104 /* If the joystick is already open, return it */
107 joystick = SDL_joysticks[i]
    [all...]
SDL_joystick_c.h 31 extern int SDL_PrivateJoystickAxis(SDL_Joystick *joystick,
33 extern int SDL_PrivateJoystickBall(SDL_Joystick *joystick,
35 extern int SDL_PrivateJoystickHat(SDL_Joystick *joystick,
37 extern int SDL_PrivateJoystickButton(SDL_Joystick *joystick,
SDL_sysjoystick.h 24 /* This is the system specific header for the SDL joystick API */
28 /* The SDL joystick structure */
31 const char *name; /* Joystick name - system dependent */
33 int naxes; /* Number of axis controls on the joystick */
36 int nhats; /* Number of hats on the joystick */
39 int nballs; /* Number of trackballs on the joystick */
45 int nbuttons; /* Number of buttons on the joystick */
54 * Joystick 0 should be the system default joystick.
60 /* Function to get the device-dependent name of a joystick */
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/joystick/amigaos/
SDL_sysjoystick.c 26 /* This is the system specific header for the SDL joystick API */
49 * joysticks. Joystick 0 should be the system default joystick.
88 /* Function to get the device-dependent name of a joystick */
96 return "Port 1 Amiga Joystick/Joypad";
98 return "Port 2 Amiga Joystick/Joypad";
102 SDL_SetError("No joystick available with that index");
106 /* Function to open a joystick for use.
107 The joystick to open is specified by the index field of the joystick
    [all...]
  /external/qemu/distrib/sdl-1.2.12/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.12/src/joystick/dummy/
SDL_sysjoystick.c 26 /* This is the system specific header for the SDL joystick API */
34 * joysticks. Joystick 0 should be the system default joystick.
43 /* Function to get the device-dependent name of a joystick */
50 /* Function to open a joystick for use.
51 The joystick to open is specified by the index field of the joystick.
52 This should fill the nbuttons and naxes fields of the joystick structure.
55 int SDL_SYS_JoystickOpen(SDL_Joystick *joystick)
61 /* Function to update the state of a joystick - called as a device poll
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/joystick/riscos/
SDL_sysjoystick.c 27 RISC OS - Joystick support by Alan Buckley (alan_baa@hotmail.com) - 10 April 2003
29 Note: Currently assumes joystick is present if joystick module is loaded
30 and that there is one joystick with four buttons.
33 /* This is the system specific header for the SDL joystick API */
52 * joysticks. Joystick 0 should be the system default joystick.
59 /* Try to read joystick 0 */
63 /* Switch works so assume we've got a joystick */
66 /* Switch fails so it looks like there's no joystick here *
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/joystick/dc/
SDL_sysjoystick.c 35 #define MAX_AXES 6 /* each joystick can have up to 6 axes */
41 /* array to hold joystick ID values */
44 /* The private structure used to keep track of a joystick */
53 * joysticks. Joystick 0 should be the system default joystick.
75 /* Function to get the device-dependent name of a joystick */
83 /* Function to open a joystick for use.
84 The joystick to open is specified by the index field of the joystick.
85 This should fill the nbuttons and naxes fields of the joystick structure
    [all...]
  /external/qemu/distrib/sdl-1.2.12/include/
SDL_joystick.h 23 /* Include file for SDL joystick event handling */
42 /* The joystick structure used to identify an SDL joystick */
54 * Get the implementation dependent name of a joystick.
61 * Open a joystick for use - the index passed as an argument refers to
62 * the N'th joystick on the system. This index is the value which will
63 * identify this joystick in future joystick events.
65 * This function returns a joystick identifier, or NULL if an error occurred.
70 * Returns 1 if the joystick has been opened, or 0 if it has not
    [all...]
  /prebuilt/darwin-x86/sdl/include/SDL/
SDL_joystick.h 23 /* Include file for SDL joystick event handling */
42 /* The joystick structure used to identify an SDL joystick */
54 * Get the implementation dependent name of a joystick.
61 * Open a joystick for use - the index passed as an argument refers to
62 * the N'th joystick on the system. This index is the value which will
63 * identify this joystick in future joystick events.
65 * This function returns a joystick identifier, or NULL if an error occurred.
70 * Returns 1 if the joystick has been opened, or 0 if it has not
    [all...]
  /prebuilt/linux-x86/sdl/include/SDL/
SDL_joystick.h 23 /* Include file for SDL joystick event handling */
42 /* The joystick structure used to identify an SDL joystick */
54 * Get the implementation dependent name of a joystick.
61 * Open a joystick for use - the index passed as an argument refers to
62 * the N'th joystick on the system. This index is the value which will
63 * identify this joystick in future joystick events.
65 * This function returns a joystick identifier, or NULL if an error occurred.
70 * Returns 1 if the joystick has been opened, or 0 if it has not
    [all...]
  /prebuilt/windows/sdl/host/include/SDL/
SDL_joystick.h 28 /* Include file for SDL joystick event handling */
46 /* The joystick structure used to identify an SDL joystick */
58 * Get the implementation dependent name of a joystick.
65 * Open a joystick for use - the index passed as an argument refers to
66 * the N'th joystick on the system. This index is the value which will
67 * identify this joystick in future joystick events.
69 * This function returns a joystick identifier, or NULL if an error occurred.
74 * Returns 1 if the joystick has been opened, or 0 if it has not
    [all...]
  /prebuilt/windows/sdl/include/SDL/
SDL_joystick.h 23 /* Include file for SDL joystick event handling */
42 /* The joystick structure used to identify an SDL joystick */
54 * Get the implementation dependent name of a joystick.
61 * Open a joystick for use - the index passed as an argument refers to
62 * the N'th joystick on the system. This index is the value which will
63 * identify this joystick in future joystick events.
65 * This function returns a joystick identifier, or NULL if an error occurred.
70 * Returns 1 if the joystick has been opened, or 0 if it has not
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/joystick/macos/
SDL_sysjoystick.c 27 MacOS joystick functions by Frederick Reitberger
62 * Joystick 0 should be the system default joystick.
129 /* Function to get the device-dependent name of a joystick */
146 /* Function to open a joystick for use.
147 The joystick to open is specified by the index field of the joystick.
148 This should fill the nbuttons and naxes fields of the joystick structure.
151 int SDL_SYS_JoystickOpen(SDL_Joystick *joystick)
161 index = joystick->index
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/joystick/win32/
SDL_mmjoystick.c 26 /* Win32 MultiMedia Joystick driver, contributed by Andrei de A. Formiga */
39 #define MAX_AXES 6 /* each joystick can have up to 6 axes */
48 /* array to hold joystick ID values */
53 /* The private structure used to keep track of a joystick */
56 /* joystick ID */
75 see if there is a joystick for the current
99 /* find the registry key name for the joystick's properties */
101 SDL_snprintf(regvalue, SDL_arraysize(regvalue), "Joystick%d%s", index+1, REGSTR_VAL_JOYOEMNAME);
136 * joysticks. Joystick 0 should be the system default joystick
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/joystick/os2/
SDL_sysjoystick.c 26 /* OS/2 Joystick driver, contributed by Daniel Caetano */
41 HFILE hJoyPort = NULL; /* Joystick GAME$ Port Address */
43 #define MAX_AXES 4 /* each joystick can have up to 4 axes */
49 #define MAX_JOYNAME 128 /* Joystick name may have 128 characters */
55 /* Joystick data... hold information about detected devices */
85 /* Structure used to get values from Joystick Environment Variable */
106 /* joysticks. Joystick 0 should be the system default joystick. */
112 GAME_PORT_STRUCT stJoyStatus; /* Joystick Status Structure */
113 GAME_PARM_STRUCT stGameParms; /* Joystick Parameter Structure *
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/joystick/mint/
SDL_sysjoystick.c 27 * Atari Joystick/Joypad drivers
46 1 joystick on IKBD port 1, read via hardware I/O
47 or same joystick on IKBD port 1, read via xbios
126 {SDL_FALSE,"IKBD joystick port 1",0},
127 {SDL_FALSE,"Xbios joystick port 1",0},
136 {SDL_FALSE,"Joystick 0 port A",0},
137 {SDL_FALSE,"Joystick 1 port A",0},
138 {SDL_FALSE,"Joystick 0 port B",0},
139 {SDL_FALSE,"Joystick 1 port B",0},
144 ,{SDL_FALSE,"Joystick 0 parallel port",0}
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/joystick/linux/
SDL_sysjoystick.c 26 /* This is the system specific header for the SDL joystick API */
33 #include <linux/joystick.h>
42 /* Special joystick configurations */
57 { "Microsoft SideWinder Precision 2 Joystick", 4, 1, 0 },
65 Some USB HIDs show up as a single joystick even though they actually
154 This array sets up a means of mapping a single physical joystick to
161 an array of layout structures, one to describe each logical joystick
271 /* The private structure used to keep track of a joystick */
274 /* The current linux joystick driver maps hats to two axes */
278 /* The current linux joystick driver maps balls to two axes *
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/joystick/darwin/
SDL_sysjoystick.c 26 /* SDL joystick driver for Darwin / Mac OS X, based on the IOKit HID API */
566 * Joystick 0 should be the system default joystick.
583 SDL_SetError("Joystick: Device list already inited.");
590 SDL_SetError("Joystick: IOMasterPort error with bootstrap_port.");
598 /* Add key for device type (joystick, in this case) to refine the matching dictionary. */
613 SDL_SetError("Joystick: Failed to get HID CFMutableDictionaryRef via IOServiceMatching.");
622 SDL_SetError("Joystick: Couldn't create a HID object iterator.");
682 /* Function to get the device-dependent name of a joystick */
693 /* Function to open a joystick for use
    [all...]
  /external/qemu/distrib/sdl-1.2.12/src/joystick/bsd/
SDL_sysjoystick.c 27 * Joystick driver for the uhid(4) interface found in OpenBSD,
62 #include <sys/joystick.h>
66 #include <machine/joystick.h>
278 joydevnames[joy->index] = strdup("Gameport joystick");
394 struct joystick gameport;
506 /* Function to close a joystick after use */

Completed in 1565 milliseconds