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

  /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/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.15/src/joystick/nds/
SDL_sysjoystick.c 24 /* This is the system specific header for the SDL joystick API */
38 * joysticks. Joystick 0 should be the system default joystick.
49 /* Function to get the device-dependent name of a joystick */
54 SDL_SetError("No joystick available with that index");
58 /* Function to open a joystick for use.
59 The joystick to open is specified by the index field of the joystick.
60 This should fill the nbuttons and naxes fields of the joystick structure.
63 int SDL_SYS_JoystickOpen(SDL_Joystick *joystick)
    [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...]
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.15/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.15/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.15/include/
SDL_joystick.h 24 * Include file for SDL joystick event handling
45 /** The joystick structure used to identify an SDL joystick */
56 * Get the implementation dependent name of a joystick.
64 * Open a joystick for use.
68 * the N'th joystick on the system. This index is the value which will
69 * identify this joystick in future joystick events.
71 * @return This function returns a joystick identifier, or NULL if an error occurred.
76 * Returns 1 if the joystick has been opened, or 0 if it has not
    [all...]
  /prebuilts/tools/darwin-x86/sdl/include/SDL/
SDL_joystick.h 24 * Include file for SDL joystick event handling
45 /** The joystick structure used to identify an SDL joystick */
56 * Get the implementation dependent name of a joystick.
64 * Open a joystick for use.
68 * the N'th joystick on the system. This index is the value which will
69 * identify this joystick in future joystick events.
71 * @return This function returns a joystick identifier, or NULL if an error occurred.
76 * Returns 1 if the joystick has been opened, or 0 if it has not
    [all...]
  /prebuilts/tools/linux-x86/sdl/include/SDL/
SDL_joystick.h 24 * Include file for SDL joystick event handling
45 /** The joystick structure used to identify an SDL joystick */
56 * Get the implementation dependent name of a joystick.
64 * Open a joystick for use.
68 * the N'th joystick on the system. This index is the value which will
69 * identify this joystick in future joystick events.
71 * @return This function returns a joystick identifier, or NULL if an error occurred.
76 * Returns 1 if the joystick has been opened, or 0 if it has not
    [all...]
  /prebuilts/tools/windows/sdl/include/SDL/
SDL_joystick.h 24 * Include file for SDL joystick event handling
45 /** The joystick structure used to identify an SDL joystick */
56 * Get the implementation dependent name of a joystick.
64 * Open a joystick for use.
68 * the N'th joystick on the system. This index is the value which will
69 * identify this joystick in future joystick events.
71 * @return This function returns a joystick identifier, or NULL if an error occurred.
76 * Returns 1 if the joystick has been opened, or 0 if it has not
    [all...]
  /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/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.15/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.15/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 },
68 Some USB HIDs show up as a single joystick even though they actually
157 This array sets up a means of mapping a single physical joystick to
164 an array of layout structures, one to describe each logical joystick
274 /* The private structure used to keep track of a joystick */
277 /* The current linux joystick driver maps hats to two axes */
281 /* The current linux joystick driver maps balls to two axes *
    [all...]
  /external/qemu/distrib/sdl-1.2.15/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
216 {SDL_FALSE,"IKBD joystick port 1",0},
217 {SDL_FALSE,"Xbios joystick port 1",0},
226 {SDL_FALSE,"Joystick 0 port A",0},
227 {SDL_FALSE,"Joystick 1 port A",0},
228 {SDL_FALSE,"Joystick 0 port B",0},
229 {SDL_FALSE,"Joystick 1 port B",0},
234 ,{SDL_FALSE,"Joystick 0 parallel port",0}
    [all...]
  /external/jmonkeyengine/engine/src/core/com/jme3/input/
FlyByCamera.java 206 Joystick[] joysticks = inputManager.getJoysticks();
208 Joystick joystick = joysticks[0]; local
209 joystick.assignAxis("FLYCAM_StrafeRight", "FLYCAM_StrafeLeft", JoyInput.AXIS_POV_X);
210 joystick.assignAxis("FLYCAM_Forward", "FLYCAM_Backward", JoyInput.AXIS_POV_Y);
211 joystick.assignAxis("FLYCAM_Right", "FLYCAM_Left", joystick.getXAxisIndex());
212 joystick.assignAxis("FLYCAM_Down", "FLYCAM_Up", joystick.getYAxisIndex());
236 Joystick[] joysticks = inputManager.getJoysticks();
238 Joystick joystick = joysticks[0]; local
    [all...]
InputManager.java 73 * the input is non-zero, however an exception to this is for joystick axis inputs,
88 private final JoyInput joystick; field in class:InputManager
100 private Joystick[] joysticks;
127 * @param joystick
131 public InputManager(MouseInput mouse, KeyInput keys, JoyInput joystick, TouchInput touch) {
138 this.joystick = joystick;
143 if (joystick != null) {
144 joystick.setInputListener(this);
145 joysticks = joystick.loadJoysticks(this);
    [all...]
  /external/qemu/distrib/sdl-1.2.15/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.15/src/joystick/bsd/
SDL_sysjoystick.c 27 * Joystick driver for the uhid(4) interface found in OpenBSD,
69 #include <sys/joystick.h>
73 #include <machine/joystick.h>
291 joydevnames[joy->index] = strdup("Gameport joystick");
411 struct joystick gameport;
523 /* Function to close a joystick after use */

Completed in 130 milliseconds