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

  /hardware/bsp/intel/peripheral/libupm/examples/javascript/
joystick12.js 28 var joystick = require('jsupm_joystick12'); variable
30 // Instantiate a joystick on analog pins A0 and A1
31 var myJoystick = new joystick.Joystick12(0, 1);
  /hardware/bsp/intel/peripheral/libupm/examples/java/
Joystick12_exampleSample.java 38 // Instantiate a joystick on analog pins A0 and A1
39 upm_joystick12.Joystick12 joystick = new upm_joystick12.Joystick12(0,1); local
43 float x = joystick.getXInput();
44 float y = joystick.getYInput();
  /prebuilts/misc/windows/sdl2/test/
testhotplug.c 13 /* Simple program to test the SDL joystick hotplugging */
27 SDL_Joystick *joystick = NULL; local
73 if (joystick != NULL)
75 SDL_Log("Only one joystick supported by this test\n");
79 joystick = SDL_JoystickOpen(event.jdevice.which);
80 instance = SDL_JoystickInstanceID(joystick);
81 SDL_Log("Joy Added : %d : %s\n", event.jdevice.which, SDL_JoystickName(joystick));
84 if (SDL_JoystickIsHaptic(joystick))
86 haptic = SDL_HapticOpenFromJoystick(joystick);
117 SDL_JoystickClose(joystick);
    [all...]
testjoystick.c 13 /* Simple program to test the SDL joystick routines */
40 WatchJoystick(SDL_Joystick * joystick)
50 /* Create a window to display joystick axis position */
51 window = SDL_CreateWindow("Joystick Test", SDL_WINDOWPOS_CENTERED,
71 /* Print info about the joystick we are watching */
72 name = SDL_JoystickName(joystick);
73 SDL_Log("Watching joystick %d: (%s)\n", SDL_JoystickInstanceID(joystick),
74 name ? name : "Unknown Joystick");
75 SDL_Log("Joystick has %d axes, %d hats, %d balls, and %d buttons\n"
212 SDL_Joystick *joystick; local
    [all...]
controllermap.c 100 WatchJoystick(SDL_Joystick * joystick)
139 /* Create a window to display joystick axis position */
163 /* Print info about the joystick we are watching */
164 name = SDL_JoystickName(joystick);
165 SDL_Log("Watching joystick %d: (%s)\n", SDL_JoystickInstanceID(joystick),
166 name ? name : "Unknown Joystick");
167 SDL_Log("Joystick has %d axes, %d hats, %d balls, and %d buttons\n",
168 SDL_JoystickNumAxes(joystick), SDL_JoystickNumHats(joystick),
342 SDL_Joystick *joystick; local
    [all...]
  /external/libgdx/extensions/gdx-controllers/gdx-controllers-desktop/jni/
com.badlogic.gdx.controllers.desktop.ois.OisJoystick.cpp 69 JNIEXPORT void JNICALL Java_com_badlogic_gdx_controllers_desktop_ois_OisJoystick_initialize(JNIEnv* env, jobject object, jobject joystick) {
74 initializeClasses(env, joystick);
84 OIS::JoyStick* joystick = (OIS::JoyStick*)joystickPtr; local
86 joystick->setEventCallback(&listener);
87 joystick->capture();
97 OIS::JoyStick* joystick = (OIS::JoyStick*)joystickPtr; local
108 OIS::JoyStick* joystick = (OIS::JoyStick*)joystickPtr; local
119 OIS::JoyStick* joystick = (OIS::JoyStick*)joystickPtr; local
130 OIS::JoyStick* joystick = (OIS::JoyStick*)joystickPtr; local
    [all...]
  /external/libgdx/extensions/gdx-controllers/gdx-controllers-desktop/src/com/badlogic/gdx/controllers/desktop/
OisControllers.java 56 OisJoystick joystick = joysticks.get(i); local
57 controllers[i] = new OisController(joystick);
80 OisJoystick joystick = joysticks.get(i); local
81 controllers[i] = new OisController(joystick);
94 private final OisJoystick joystick; field in class:OisControllers.OisController
97 public OisController (OisJoystick joystick) {
98 this.joystick = joystick;
99 joystick.setListener(new OisListener() {
100 public void buttonReleased (OisJoystick joystick, int buttonIndex)
    [all...]
  /external/skia/platform_tools/android/apps/visualbenchsdl/src/main/java/org/libsdl/app/
SDLActivity.java 674 // Joystick glue code, just a series of stubs that redirect to the SDLJoystickHandler instance
1541 SDLJoystick joystick = getJoystick(deviceIds[i]); local
1619 SDLJoystick joystick = getJoystick(event.getDeviceId()); local
    [all...]

Completed in 304 milliseconds