/third_party/flutter/skia/third_party/externals/sdl/src/joystick/ |
D | SDL_joystick.c | 103 SDL_Joystick *joystick; in SDL_JoystickOpen() local 118 joystick = joysticklist; in SDL_JoystickOpen() 119 ++joystick->ref_count; in SDL_JoystickOpen() 120 return (joystick); in SDL_JoystickOpen() 126 joystick = (SDL_Joystick *) SDL_malloc((sizeof *joystick)); in SDL_JoystickOpen() 127 if (joystick == NULL) { in SDL_JoystickOpen() 132 SDL_memset(joystick, 0, (sizeof *joystick)); in SDL_JoystickOpen() 133 if (SDL_SYS_JoystickOpen(joystick, device_index) < 0) { in SDL_JoystickOpen() 134 SDL_free(joystick); in SDL_JoystickOpen() 140 joystick->name = SDL_strdup(joystickname); in SDL_JoystickOpen() [all …]
|
D | SDL_joystick_c.h | 38 extern int SDL_PrivateJoystickAxis(SDL_Joystick * joystick, 40 extern int SDL_PrivateJoystickBall(SDL_Joystick * joystick, 42 extern int SDL_PrivateJoystickHat(SDL_Joystick * joystick, 44 extern int SDL_PrivateJoystickButton(SDL_Joystick * joystick, 46 extern void SDL_PrivateJoystickBatteryLevel(SDL_Joystick * joystick, 50 extern int SDL_PrivateJoystickValid(SDL_Joystick * joystick);
|
D | SDL_sysjoystick.h | 86 extern int SDL_SYS_JoystickOpen(SDL_Joystick * joystick, int device_index); 91 extern SDL_bool SDL_SYS_JoystickAttached(SDL_Joystick * joystick); 98 extern void SDL_SYS_JoystickUpdate(SDL_Joystick * joystick); 101 extern void SDL_SYS_JoystickClose(SDL_Joystick * joystick); 110 extern SDL_JoystickGUID SDL_SYS_JoystickGetGUID(SDL_Joystick * joystick);
|
D | SDL_gamecontroller.c | 98 SDL_Joystick *joystick; /* underlying joystick device */ member 156 if (controllerlist->joystick->instance_id == event->jaxis.which) { in SDL_GameControllerEventWatcher() 191 if (controllerlist->joystick->instance_id == event->jbutton.which) { in SDL_GameControllerEventWatcher() 211 if (controllerlist->joystick->instance_id == event->jhat.which) { in SDL_GameControllerEventWatcher() 262 if (controllerlist->joystick->instance_id == event->jdevice.which) { in SDL_GameControllerEventWatcher() 605 event.cdevice.which = gamecontrollerlist->joystick->instance_id; in SDL_PrivateGameControllerRefreshMapping() 983 …if (SDL_SYS_GetInstanceIdOfDeviceIndex(device_index) == gamecontrollerlist->joystick->instance_id)… in SDL_GameControllerOpen() 1006 gamecontroller->joystick = SDL_JoystickOpen(device_index); in SDL_GameControllerOpen() 1007 if (!gamecontroller->joystick) { in SDL_GameControllerOpen() 1019 gamecontroller->joystick->axes[leftTriggerMapping] = in SDL_GameControllerOpen() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/haiku/ |
D | SDL_haikujoystick.cc | 61 BJoystick joystick; in SDL_SYS_JoystickInit() local 67 nports = joystick.CountDevices(); in SDL_SYS_JoystickInit() 73 if (joystick.GetDeviceName(i, name) == B_OK) { in SDL_SYS_JoystickInit() 74 if (joystick.Open(name) != B_ERROR) { in SDL_SYS_JoystickInit() 76 joystick.GetControllerName(&stick_name); in SDL_SYS_JoystickInit() 80 joystick.Close(); in SDL_SYS_JoystickInit() 113 int SDL_SYS_JoystickOpen(SDL_Joystick * joystick, int device_index) in SDL_SYS_JoystickOpen() argument 118 joystick->instance_id = device_index; in SDL_SYS_JoystickOpen() 119 joystick->hwdata = (struct joystick_hwdata *) in SDL_SYS_JoystickOpen() 120 SDL_malloc(sizeof(*joystick->hwdata)); in SDL_SYS_JoystickOpen() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/linux/ |
D | SDL_sysjoystick.c | 395 allocate_hatdata(SDL_Joystick * joystick) in allocate_hatdata() argument 399 joystick->hwdata->hats = in allocate_hatdata() 400 (struct hwdata_hat *) SDL_malloc(joystick->nhats * in allocate_hatdata() 402 if (joystick->hwdata->hats == NULL) { in allocate_hatdata() 405 for (i = 0; i < joystick->nhats; ++i) { in allocate_hatdata() 406 joystick->hwdata->hats[i].axis[0] = 1; in allocate_hatdata() 407 joystick->hwdata->hats[i].axis[1] = 1; in allocate_hatdata() 413 allocate_balldata(SDL_Joystick * joystick) in allocate_balldata() argument 417 joystick->hwdata->balls = in allocate_balldata() 418 (struct hwdata_ball *) SDL_malloc(joystick->nballs * in allocate_balldata() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/test/ |
D | testjoystick.c | 51 SDL_Joystick *joystick = (SDL_Joystick *)arg; in loop() local 62 SDL_Log("Our instance ID is %d\n", (int) SDL_JoystickInstanceID(joystick)); in loop() 115 for (i = 0; i < SDL_JoystickNumButtons(joystick); ++i) { in loop() 116 if (SDL_JoystickGetButton(joystick, i) == SDL_PRESSED) { in loop() 122 for (i = 0; i < SDL_JoystickNumAxes(joystick); ++i) { in loop() 125 x = (((int) SDL_JoystickGetAxis(joystick, i)) + 32768); in loop() 134 if (i < SDL_JoystickNumAxes(joystick)) { in loop() 135 y = (((int) SDL_JoystickGetAxis(joystick, i)) + 32768); in loop() 151 for (i = 0; i < SDL_JoystickNumHats(joystick); ++i) { in loop() 155 const Uint8 hat_pos = SDL_JoystickGetHat(joystick, i); in loop() [all …]
|
D | controllermap.c | 97 WatchJoystick(SDL_Joystick * joystick) in WatchJoystick() argument 161 name = SDL_JoystickName(joystick); in WatchJoystick() 162 SDL_Log("Watching joystick %d: (%s)\n", SDL_JoystickInstanceID(joystick), in WatchJoystick() 165 SDL_JoystickNumAxes(joystick), SDL_JoystickNumHats(joystick), in WatchJoystick() 166 SDL_JoystickNumBalls(joystick), SDL_JoystickNumButtons(joystick)); in WatchJoystick() 178 SDL_JoystickGetGUIDString(SDL_JoystickGetGUID(joystick), temp, SDL_arraysize(temp)); in WatchJoystick() 341 SDL_Joystick *joystick; local 357 joystick = SDL_JoystickOpen(i); 358 if (joystick == NULL) { 363 SDL_JoystickGetGUIDString(SDL_JoystickGetGUID(joystick), [all …]
|
D | testhotplug.c | 26 SDL_Joystick *joystick = NULL; in main() local 74 if (joystick != NULL) in main() 80 joystick = SDL_JoystickOpen(event.jdevice.which); in main() 81 instance = SDL_JoystickInstanceID(joystick); in main() 82 … SDL_Log("Joy Added : %d : %s\n", event.jdevice.which, SDL_JoystickName(joystick)); in main() 85 if (SDL_JoystickIsHaptic(joystick)) in main() 87 haptic = SDL_HapticOpenFromJoystick(joystick); in main() 118 SDL_JoystickClose(joystick); in main() 119 joystick = NULL; in main()
|
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/windows/ |
D | SDL_xinputjoystick.c | 186 SDL_XINPUT_JoystickOpen(SDL_Joystick * joystick, JoyStick_DeviceData *joystickdevice) in SDL_XINPUT_JoystickOpen() argument 197 joystick->hwdata->bXInputDevice = SDL_TRUE; in SDL_XINPUT_JoystickOpen() 200 SDL_free(joystick->hwdata); in SDL_XINPUT_JoystickOpen() 201 joystick->hwdata = NULL; in SDL_XINPUT_JoystickOpen() 205 joystick->hwdata->bXInputHaptic = (XINPUTSETSTATE(userId, &state) == ERROR_SUCCESS); in SDL_XINPUT_JoystickOpen() 206 joystick->hwdata->userid = userId; in SDL_XINPUT_JoystickOpen() 210 joystick->naxes = 6; in SDL_XINPUT_JoystickOpen() 211 joystick->nbuttons = 15; in SDL_XINPUT_JoystickOpen() 213 joystick->naxes = 6; in SDL_XINPUT_JoystickOpen() 214 joystick->nbuttons = 11; in SDL_XINPUT_JoystickOpen() [all …]
|
D | SDL_mmjoystick.c | 218 SDL_SYS_JoystickOpen(SDL_Joystick * joystick, int device_index) in SDL_SYS_JoystickOpen() argument 242 joystick->instance_id = device_index; in SDL_SYS_JoystickOpen() 243 joystick->hwdata = in SDL_SYS_JoystickOpen() 244 (struct joystick_hwdata *) SDL_malloc(sizeof(*joystick->hwdata)); in SDL_SYS_JoystickOpen() 245 if (joystick->hwdata == NULL) { in SDL_SYS_JoystickOpen() 248 SDL_memset(joystick->hwdata, 0, sizeof(*joystick->hwdata)); in SDL_SYS_JoystickOpen() 251 joystick->hwdata->id = SYS_JoystickID[index]; in SDL_SYS_JoystickOpen() 254 joystick->hwdata->transaxis[i].offset = AXIS_MIN - axis_min[i]; in SDL_SYS_JoystickOpen() 255 joystick->hwdata->transaxis[i].scale = in SDL_SYS_JoystickOpen() 258 joystick->hwdata->transaxis[i].offset = 0; in SDL_SYS_JoystickOpen() [all …]
|
D | SDL_dinputjoystick.c | 421 SDL_Joystick *joystick = (SDL_Joystick *)pvRef; in EnumDevObjectsCallback() local 423 input_t *in = &joystick->hwdata->Inputs[joystick->hwdata->NumInputs]; in EnumDevObjectsCallback() 427 in->num = joystick->nbuttons; in EnumDevObjectsCallback() 429 joystick->nbuttons++; in EnumDevObjectsCallback() 432 in->num = joystick->nhats; in EnumDevObjectsCallback() 434 joystick->nhats++; in EnumDevObjectsCallback() 440 in->num = joystick->naxes; in EnumDevObjectsCallback() 454 in->ofs = DIJOFS_SLIDER(joystick->hwdata->NumSliders); in EnumDevObjectsCallback() 455 ++joystick->hwdata->NumSliders; in EnumDevObjectsCallback() 468 IDirectInputDevice8_SetProperty(joystick->hwdata->InputDevice, in EnumDevObjectsCallback() [all …]
|
D | SDL_windowsjoystick.c | 420 SDL_SYS_JoystickOpen(SDL_Joystick * joystick, int device_index) in SDL_SYS_JoystickOpen() argument 428 joystick->instance_id = joystickdevice->nInstanceID; in SDL_SYS_JoystickOpen() 429 joystick->hwdata = in SDL_SYS_JoystickOpen() 431 if (joystick->hwdata == NULL) { in SDL_SYS_JoystickOpen() 434 SDL_zerop(joystick->hwdata); in SDL_SYS_JoystickOpen() 435 joystick->hwdata->guid = joystickdevice->guid; in SDL_SYS_JoystickOpen() 438 return SDL_XINPUT_JoystickOpen(joystick, joystickdevice); in SDL_SYS_JoystickOpen() 440 return SDL_DINPUT_JoystickOpen(joystick, joystickdevice); in SDL_SYS_JoystickOpen() 446 SDL_SYS_JoystickAttached(SDL_Joystick * joystick) in SDL_SYS_JoystickAttached() argument 448 return joystick->hwdata && !joystick->hwdata->removed; in SDL_SYS_JoystickAttached() [all …]
|
D | SDL_dinputjoystick_c.h | 25 extern int SDL_DINPUT_JoystickOpen(SDL_Joystick * joystick, JoyStick_DeviceData *joystickdevice); 26 extern void SDL_DINPUT_JoystickUpdate(SDL_Joystick * joystick); 27 extern void SDL_DINPUT_JoystickClose(SDL_Joystick * joystick);
|
D | SDL_xinputjoystick_c.h | 28 extern int SDL_XINPUT_JoystickOpen(SDL_Joystick * joystick, JoyStick_DeviceData *joystickdevice); 29 extern void SDL_XINPUT_JoystickUpdate(SDL_Joystick * joystick); 30 extern void SDL_XINPUT_JoystickClose(SDL_Joystick * joystick);
|
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/android/ |
D | SDL_sysjoystick.c | 188 if (item && item->joystick) { in Android_OnPadDown() 189 SDL_PrivateJoystickButton(item->joystick, button , SDL_PRESSED); in Android_OnPadDown() 204 if (item && item->joystick) { in Android_OnPadUp() 205 SDL_PrivateJoystickButton(item->joystick, button, SDL_RELEASED); in Android_OnPadUp() 218 if (item && item->joystick) { in Android_OnJoy() 219 SDL_PrivateJoystickAxis(item->joystick, axis, (Sint16) (32767.*value) ); in Android_OnJoy() 236 if (item && item->joystick) { in Android_OnHat() 237 SDL_PrivateJoystickHat(item->joystick, hat_id, position_map[y+1][x+1] ); in Android_OnHat() 323 if (item->joystick) { in Android_RemoveJoystick() 324 item->joystick->hwdata = NULL; in Android_RemoveJoystick() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/include/ |
D | SDL_joystick.h | 118 extern DECLSPEC const char *SDLCALL SDL_JoystickName(SDL_Joystick * joystick); 128 extern DECLSPEC SDL_JoystickGUID SDLCALL SDL_JoystickGetGUID(SDL_Joystick * joystick); 144 extern DECLSPEC SDL_bool SDLCALL SDL_JoystickGetAttached(SDL_Joystick * joystick); 149 extern DECLSPEC SDL_JoystickID SDLCALL SDL_JoystickInstanceID(SDL_Joystick * joystick); 154 extern DECLSPEC int SDLCALL SDL_JoystickNumAxes(SDL_Joystick * joystick); 162 extern DECLSPEC int SDLCALL SDL_JoystickNumBalls(SDL_Joystick * joystick); 167 extern DECLSPEC int SDLCALL SDL_JoystickNumHats(SDL_Joystick * joystick); 172 extern DECLSPEC int SDLCALL SDL_JoystickNumButtons(SDL_Joystick * joystick); 200 extern DECLSPEC Sint16 SDLCALL SDL_JoystickGetAxis(SDL_Joystick * joystick, 234 extern DECLSPEC Uint8 SDLCALL SDL_JoystickGetHat(SDL_Joystick * joystick, [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/emscripten/ |
D | SDL_sysjoystick.c | 132 if (item->joystick) { in Emscripten_JoyStickDisconnected() 133 item->joystick->hwdata = NULL; in Emscripten_JoyStickDisconnected() 271 SDL_SYS_JoystickOpen(SDL_Joystick * joystick, int device_index) in SDL_SYS_JoystickOpen() argument 279 if (item->joystick != NULL) { in SDL_SYS_JoystickOpen() 283 joystick->instance_id = item->device_instance; in SDL_SYS_JoystickOpen() 284 joystick->hwdata = (struct joystick_hwdata *) item; in SDL_SYS_JoystickOpen() 285 item->joystick = joystick; in SDL_SYS_JoystickOpen() 288 joystick->nhats = 0; in SDL_SYS_JoystickOpen() 289 joystick->nballs = 0; in SDL_SYS_JoystickOpen() 291 joystick->nbuttons = item->nbuttons; in SDL_SYS_JoystickOpen() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/iphoneos/ |
D | SDL_sysjoystick.m | 23 /* This is the iOS implementation of the SDL joystick API */ 227 if (device->joystick) { 228 device->joystick->hwdata = NULL; 270 * Joystick 0 should be the system default joystick. 281 /* Default behavior, accelerometer as joystick */ 338 /* Function to get the device-dependent name of a joystick */ 353 /* Function to open a joystick for use. 354 The joystick to open is specified by the device index. 355 This should fill the nbuttons and naxes fields of the joystick structure. 359 SDL_SYS_JoystickOpen(SDL_Joystick * joystick, int device_index) [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/psp/ |
D | SDL_sysjoystick.c | 171 int SDL_SYS_JoystickOpen(SDL_Joystick *joystick, int device_index) in SDL_SYS_JoystickOpen() argument 173 joystick->nbuttons = 14; in SDL_SYS_JoystickOpen() 174 joystick->naxes = 2; in SDL_SYS_JoystickOpen() 175 joystick->nhats = 0; in SDL_SYS_JoystickOpen() 181 SDL_bool SDL_SYS_JoystickAttached(SDL_Joystick *joystick) in SDL_SYS_JoystickAttached() argument 191 void SDL_SYS_JoystickUpdate(SDL_Joystick *joystick) in SDL_SYS_JoystickUpdate() argument 208 SDL_PrivateJoystickAxis(joystick, 0, analog_map[x]); in SDL_SYS_JoystickUpdate() 212 SDL_PrivateJoystickAxis(joystick, 1, analog_map[y]); in SDL_SYS_JoystickUpdate() 223 joystick, i, in SDL_SYS_JoystickUpdate() 234 void SDL_SYS_JoystickClose(SDL_Joystick *joystick) in SDL_SYS_JoystickClose() argument [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/darwin/ |
D | SDL_sysjoystick.c | 627 SDL_SYS_JoystickOpen(SDL_Joystick * joystick, int device_index) in SDL_SYS_JoystickOpen() argument 631 joystick->instance_id = device->instance_id; in SDL_SYS_JoystickOpen() 632 joystick->hwdata = device; in SDL_SYS_JoystickOpen() 633 joystick->name = device->product; in SDL_SYS_JoystickOpen() 635 joystick->naxes = device->axes; in SDL_SYS_JoystickOpen() 636 joystick->nhats = device->hats; in SDL_SYS_JoystickOpen() 637 joystick->nballs = 0; in SDL_SYS_JoystickOpen() 638 joystick->nbuttons = device->buttons; in SDL_SYS_JoystickOpen() 646 SDL_SYS_JoystickAttached(SDL_Joystick * joystick) in SDL_SYS_JoystickAttached() argument 648 return joystick->hwdata != NULL; in SDL_SYS_JoystickAttached() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/dummy/ |
D | SDL_sysjoystick.c | 69 SDL_SYS_JoystickOpen(SDL_Joystick * joystick, int device_index) in SDL_SYS_JoystickOpen() argument 75 SDL_bool SDL_SYS_JoystickAttached(SDL_Joystick *joystick) in SDL_SYS_JoystickAttached() argument 86 SDL_SYS_JoystickUpdate(SDL_Joystick * joystick) in SDL_SYS_JoystickUpdate() argument 92 SDL_SYS_JoystickClose(SDL_Joystick * joystick) in SDL_SYS_JoystickClose() argument 113 SDL_JoystickGUID SDL_SYS_JoystickGetGUID(SDL_Joystick * joystick) in SDL_SYS_JoystickGetGUID() argument 117 const char *name = joystick->name; in SDL_SYS_JoystickGetGUID()
|
/third_party/flutter/skia/third_party/externals/sdl/src/haptic/windows/ |
D | SDL_windowshaptic.c | 174 SDL_SYS_JoystickIsHaptic(SDL_Joystick * joystick) in SDL_SYS_JoystickIsHaptic() argument 176 const struct joystick_hwdata *hwdata = joystick->hwdata; in SDL_SYS_JoystickIsHaptic() 194 SDL_SYS_JoystickSameHaptic(SDL_Haptic * haptic, SDL_Joystick * joystick) in SDL_SYS_JoystickSameHaptic() argument 196 if (joystick->hwdata->bXInputHaptic != haptic->hwdata->bXInputHaptic) { in SDL_SYS_JoystickSameHaptic() 198 } else if (joystick->hwdata->bXInputHaptic) { in SDL_SYS_JoystickSameHaptic() 199 return SDL_XINPUT_JoystickSameHaptic(haptic, joystick); in SDL_SYS_JoystickSameHaptic() 201 return SDL_DINPUT_JoystickSameHaptic(haptic, joystick); in SDL_SYS_JoystickSameHaptic() 209 SDL_SYS_HapticOpenFromJoystick(SDL_Haptic * haptic, SDL_Joystick * joystick) in SDL_SYS_HapticOpenFromJoystick() argument 211 if (joystick->hwdata->bXInputDevice) { in SDL_SYS_HapticOpenFromJoystick() 212 return SDL_XINPUT_HapticOpenFromJoystick(haptic, joystick); in SDL_SYS_HapticOpenFromJoystick() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/android-project/src/org/libsdl/app/ |
D | SDLActivity.java | 1606 SDLJoystick joystick = getJoystick(deviceIds[i]); in pollInputDevices() local 1607 if (joystick == null) { in pollInputDevices() 1608 joystick = new SDLJoystick(); in pollInputDevices() 1611 joystick.device_id = deviceIds[i]; in pollInputDevices() 1612 joystick.name = joystickDevice.getName(); in pollInputDevices() 1613 joystick.axes = new ArrayList<InputDevice.MotionRange>(); in pollInputDevices() 1614 joystick.hats = new ArrayList<InputDevice.MotionRange>(); in pollInputDevices() 1622 joystick.hats.add(range); in pollInputDevices() 1625 joystick.axes.add(range); in pollInputDevices() 1630 mJoysticks.add(joystick); in pollInputDevices() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/haptic/ |
D | SDL_haptic.c | 245 SDL_JoystickIsHaptic(SDL_Joystick * joystick) in SDL_JoystickIsHaptic() argument 250 if (!SDL_PrivateJoystickValid(joystick)) { in SDL_JoystickIsHaptic() 254 ret = SDL_SYS_JoystickIsHaptic(joystick); in SDL_JoystickIsHaptic() 269 SDL_HapticOpenFromJoystick(SDL_Joystick * joystick) in SDL_HapticOpenFromJoystick() argument 282 if (!SDL_PrivateJoystickValid(joystick)) { in SDL_HapticOpenFromJoystick() 288 if (SDL_SYS_JoystickIsHaptic(joystick) <= 0) { in SDL_HapticOpenFromJoystick() 297 if (SDL_SYS_JoystickSameHaptic(hapticlist, joystick)) { in SDL_HapticOpenFromJoystick() 315 if (SDL_SYS_HapticOpenFromJoystick(haptic, joystick) < 0) { in SDL_HapticOpenFromJoystick()
|