/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...] |
/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...] |