Home
last modified time | relevance | path

Searched refs:hwdata (Results 1 – 20 of 20) sorted by relevance

/third_party/flutter/skia/third_party/externals/sdl/src/haptic/windows/
DSDL_xinputhaptic.c147 struct haptic_hwdata *hwdata = (struct haptic_hwdata *) arg; in SDL_RunXInputHaptic() local
149 while (!SDL_AtomicGet(&hwdata->stopThread)) { in SDL_RunXInputHaptic()
151 SDL_LockMutex(hwdata->mutex); in SDL_RunXInputHaptic()
153 if (hwdata->stopTicks) { in SDL_RunXInputHaptic()
154 …if ((hwdata->stopTicks != SDL_HAPTIC_INFINITY) && SDL_TICKS_PASSED(SDL_GetTicks(), hwdata->stopTic… in SDL_RunXInputHaptic()
156 hwdata->stopTicks = 0; in SDL_RunXInputHaptic()
157 XINPUTSETSTATE(hwdata->userid, &vibration); in SDL_RunXInputHaptic()
160 SDL_UnlockMutex(hwdata->mutex); in SDL_RunXInputHaptic()
188 haptic->hwdata = (struct haptic_hwdata *) SDL_malloc(sizeof(*haptic->hwdata)); in SDL_XINPUT_HapticOpenFromUserIndex()
189 if (haptic->hwdata == NULL) { in SDL_XINPUT_HapticOpenFromUserIndex()
[all …]
DSDL_windowshaptic.c176 const struct joystick_hwdata *hwdata = joystick->hwdata; in SDL_SYS_JoystickIsHaptic() local
178 if (hwdata->bXInputHaptic) { in SDL_SYS_JoystickIsHaptic()
183 if (hwdata->Capabilities.dwFlags & DIDC_FORCEFEEDBACK) { in SDL_SYS_JoystickIsHaptic()
196 if (joystick->hwdata->bXInputHaptic != haptic->hwdata->bXInputHaptic) { in SDL_SYS_JoystickSameHaptic()
198 } else if (joystick->hwdata->bXInputHaptic) { in SDL_SYS_JoystickSameHaptic()
211 if (joystick->hwdata->bXInputDevice) { in SDL_SYS_HapticOpenFromJoystick()
224 if (haptic->hwdata) { in SDL_SYS_HapticClose()
232 if (haptic->hwdata->bXInputHaptic) { in SDL_SYS_HapticClose()
239 SDL_free(haptic->hwdata); in SDL_SYS_HapticClose()
240 haptic->hwdata = NULL; in SDL_SYS_HapticClose()
[all …]
DSDL_dinputhaptic.c238 haptic->hwdata->axes[haptic->naxes] = offset; in DI_DeviceObjectCallback()
298 haptic->hwdata = (struct haptic_hwdata *)SDL_malloc(sizeof(*haptic->hwdata)); in SDL_DINPUT_HapticOpenFromDevice()
299 if (haptic->hwdata == NULL) { in SDL_DINPUT_HapticOpenFromDevice()
302 SDL_memset(haptic->hwdata, 0, sizeof(*haptic->hwdata)); in SDL_DINPUT_HapticOpenFromDevice()
305 haptic->hwdata->device = device8; in SDL_DINPUT_HapticOpenFromDevice()
306 haptic->hwdata->is_joystick = is_joystick; in SDL_DINPUT_HapticOpenFromDevice()
317 ret = IDirectInputDevice8_SetCooperativeLevel(haptic->hwdata->device, in SDL_DINPUT_HapticOpenFromDevice()
327 ret = IDirectInputDevice8_SetDataFormat(haptic->hwdata->device, in SDL_DINPUT_HapticOpenFromDevice()
336 ret = IDirectInputDevice8_Acquire(haptic->hwdata->device); in SDL_DINPUT_HapticOpenFromDevice()
344 ret = IDirectInputDevice8_EnumObjects(haptic->hwdata->device, in SDL_DINPUT_HapticOpenFromDevice()
[all …]
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/linux/
DSDL_sysjoystick.c67 struct joystick_hwdata *hwdata; member
255 if (item->hwdata) { in MaybeRemoveDevice()
256 item->hwdata->item = NULL; in MaybeRemoveDevice()
399 joystick->hwdata->hats = in allocate_hatdata()
402 if (joystick->hwdata->hats == NULL) { 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()
417 joystick->hwdata->balls = in allocate_balldata()
420 if (joystick->hwdata->balls == NULL) { in allocate_balldata()
424 joystick->hwdata->balls[i].axis[0] = 0; in allocate_balldata()
[all …]
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/haiku/
DSDL_haikujoystick.cc119 joystick->hwdata = (struct joystick_hwdata *) in SDL_SYS_JoystickOpen()
120 SDL_malloc(sizeof(*joystick->hwdata)); in SDL_SYS_JoystickOpen()
121 if (joystick->hwdata == NULL) { in SDL_SYS_JoystickOpen()
124 SDL_memset(joystick->hwdata, 0, sizeof(*joystick->hwdata)); in SDL_SYS_JoystickOpen()
126 joystick->hwdata->stick = stick; in SDL_SYS_JoystickOpen()
142 joystick->hwdata->new_axes = (int16 *) in SDL_SYS_JoystickOpen()
144 joystick->hwdata->new_hats = (uint8 *) in SDL_SYS_JoystickOpen()
146 if (!joystick->hwdata->new_hats || !joystick->hwdata->new_axes) { in SDL_SYS_JoystickOpen()
188 stick = joystick->hwdata->stick; in SDL_SYS_JoystickUpdate()
189 axes = joystick->hwdata->new_axes; in SDL_SYS_JoystickUpdate()
[all …]
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/windows/
DSDL_dinputjoystick.c423 input_t *in = &joystick->hwdata->Inputs[joystick->hwdata->NumInputs]; 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()
481 IDirectInputDevice8_SetProperty(joystick->hwdata->InputDevice, in EnumDevObjectsCallback()
493 joystick->hwdata->NumInputs++; in EnumDevObjectsCallback()
495 if (joystick->hwdata->NumInputs == MAX_INPUTS) { in EnumDevObjectsCallback()
522 input_t *inputs = joystick->hwdata->Inputs; in SortDevObjects()
528 SDL_qsort(inputs, joystick->hwdata->NumInputs, sizeof(input_t), SortDevFunc); in SortDevObjects()
530 for (n = 0; n < joystick->hwdata->NumInputs; n++) { in SortDevObjects()
[all …]
DSDL_windowsjoystick.c429 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()
448 return joystick->hwdata && !joystick->hwdata->removed; in SDL_SYS_JoystickAttached()
454 if (!joystick->hwdata || joystick->hwdata->removed) { in SDL_SYS_JoystickUpdate()
458 if (joystick->hwdata->bXInputDevice) { in SDL_SYS_JoystickUpdate()
464 if (joystick->hwdata->removed) { in SDL_SYS_JoystickUpdate()
473 if (joystick->hwdata->bXInputDevice) { in SDL_SYS_JoystickClose()
479 SDL_free(joystick->hwdata); in SDL_SYS_JoystickClose()
[all …]
DSDL_mmjoystick.c243 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()
259 joystick->hwdata->transaxis[i].scale = 1.0; /* Just in case */ in SDL_SYS_JoystickOpen()
326 result = joyGetPosEx(joystick->hwdata->id, &joyinfo); in SDL_SYS_JoystickUpdate()
[all …]
DSDL_xinputjoystick.c197 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()
329 result = XINPUTGETSTATE(joystick->hwdata->userid, &XInputState); in SDL_XINPUT_JoystickUpdate()
331 joystick->hwdata->send_remove_event = SDL_TRUE; in SDL_XINPUT_JoystickUpdate()
332 joystick->hwdata->removed = SDL_TRUE; in SDL_XINPUT_JoystickUpdate()
339 …result = XINPUTGETBATTERYINFORMATION( joystick->hwdata->userid, BATTERY_DEVTYPE_GAMEPAD, &XBattery… in SDL_XINPUT_JoystickUpdate()
343 …if (XInputState.dwPacketNumber && XInputState.dwPacketNumber != joystick->hwdata->dwPacketNumber) { in SDL_XINPUT_JoystickUpdate()
[all …]
/third_party/flutter/skia/third_party/externals/sdl/src/haptic/linux/
DSDL_syshaptic.c400 haptic->hwdata = (struct haptic_hwdata *) in SDL_SYS_HapticOpenFromFD()
401 SDL_malloc(sizeof(*haptic->hwdata)); in SDL_SYS_HapticOpenFromFD()
402 if (haptic->hwdata == NULL) { in SDL_SYS_HapticOpenFromFD()
406 SDL_memset(haptic->hwdata, 0, sizeof(*haptic->hwdata)); in SDL_SYS_HapticOpenFromFD()
409 haptic->hwdata->fd = fd; in SDL_SYS_HapticOpenFromFD()
435 if (haptic->hwdata != NULL) { in SDL_SYS_HapticOpenFromFD()
436 SDL_free(haptic->hwdata); in SDL_SYS_HapticOpenFromFD()
437 haptic->hwdata = NULL; in SDL_SYS_HapticOpenFromFD()
468 haptic->hwdata->fname = SDL_strdup( item->fname ); in SDL_SYS_HapticOpen()
512 return EV_IsHaptic(joystick->hwdata->fd); in SDL_SYS_JoystickIsHaptic()
[all …]
/third_party/flutter/skia/third_party/externals/sdl/src/haptic/darwin/
DSDL_syshaptic.c424 device = haptic->hwdata->device; in GetSupportedFeatures()
476 SDL_memcpy(haptic->hwdata->axes, features.ffAxes, in GetSupportedFeatures()
497 haptic->hwdata = (struct haptic_hwdata *) in SDL_SYS_HapticOpenFromService()
498 SDL_malloc(sizeof(*haptic->hwdata)); in SDL_SYS_HapticOpenFromService()
499 if (haptic->hwdata == NULL) { in SDL_SYS_HapticOpenFromService()
503 SDL_memset(haptic->hwdata, 0, sizeof(*haptic->hwdata)); in SDL_SYS_HapticOpenFromService()
506 ret = FFCreateDevice(service, &haptic->hwdata->device); in SDL_SYS_HapticOpenFromService()
521 ret = FFDeviceSendForceFeedbackCommand(haptic->hwdata->device, in SDL_SYS_HapticOpenFromService()
527 ret = FFDeviceSendForceFeedbackCommand(haptic->hwdata->device, in SDL_SYS_HapticOpenFromService()
551 FFReleaseDevice(haptic->hwdata->device); in SDL_SYS_HapticOpenFromService()
[all …]
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/bsd/
DSDL_sysjoystick.c305 joy->hwdata = hw;
455 while (read(joy->hwdata->fd, REP_BUF_DATA(rep), rep->size) == rep->size)
487 if (joy->hwdata->type == BSDJOY_JOY) {
488 while (read(joy->hwdata->fd, &gameport, sizeof gameport) == sizeof gameport) {
534 rep = &joy->hwdata->inreport;
536 while (read(joy->hwdata->fd, REP_BUF_DATA(rep), rep->size) == rep->size) {
538 hdata = hid_start_parse(joy->hwdata->repdesc, 1 << hid_input, rep->rid);
540 hdata = hid_start_parse(joy->hwdata->repdesc, 1 << hid_input);
556 naxe = joy->hwdata->axis_map[joyaxe];
598 if (SDL_strncmp(joy->hwdata->path, "/dev/joy", 8)) {
[all …]
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/android/
DSDL_sysjoystick.c324 item->joystick->hwdata = NULL; in Android_RemoveJoystick()
459 joystick->hwdata = (struct joystick_hwdata *) item; in SDL_SYS_JoystickOpen()
472 return joystick->hwdata != NULL; in SDL_SYS_JoystickAttached()
509 SDL_joylist_item *item = (SDL_joylist_item *) joystick->hwdata; in SDL_SYS_JoystickClose()
543 if (joystick->hwdata != NULL) { in SDL_SYS_JoystickGetGUID()
544 return ((SDL_joylist_item*)joystick->hwdata)->guid; in SDL_SYS_JoystickGetGUID()
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/emscripten/
DSDL_sysjoystick.c133 item->joystick->hwdata = NULL; in Emscripten_JoyStickDisconnected()
284 joystick->hwdata = (struct joystick_hwdata *) item; in SDL_SYS_JoystickOpen()
300 return joystick->hwdata != NULL; in SDL_SYS_JoystickAttached()
312 SDL_joylist_item *item = (SDL_joylist_item *) joystick->hwdata; in SDL_SYS_JoystickUpdate()
351 SDL_joylist_item *item = (SDL_joylist_item *) joystick->hwdata; in SDL_SYS_JoystickClose()
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/iphoneos/
DSDL_sysjoystick.m228 device->joystick->hwdata = NULL;
366 joystick->hwdata = device;
391 if (joystick->hwdata) {
392 ++joystick->hwdata->num_pause_presses;
406 return joystick->hwdata != NULL;
484 GCController *controller = joystick->hwdata->controller;
580 for (i = 0; i < joystick->hwdata->num_pause_presses; i++) {
590 joystick->hwdata->num_pause_presses = 0;
624 SDL_JoystickDeviceItem *device = joystick->hwdata;
641 SDL_JoystickDeviceItem *device = joystick->hwdata;
[all …]
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/darwin/
DSDL_sysjoystick.c632 joystick->hwdata = device; in SDL_SYS_JoystickOpen()
648 return joystick->hwdata != NULL; in SDL_SYS_JoystickAttached()
659 recDevice *device = joystick->hwdata; in SDL_SYS_JoystickUpdate()
669 if (joystick->hwdata) { in SDL_SYS_JoystickUpdate()
671 joystick->hwdata = NULL; in SDL_SYS_JoystickUpdate()
793 return joystick->hwdata->guid; in SDL_SYS_JoystickGetGUID()
/third_party/libdrm/data/
DAndroid.mk8 LOCAL_MODULE_RELATIVE_PATH := hwdata
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/
DSDL_sysjoystick.h53 struct joystick_hwdata *hwdata; /* Driver dependent information */ member
DSDL_joystick.c430 joystick->hwdata = NULL; in SDL_JoystickClose()
/third_party/flutter/skia/third_party/externals/sdl/src/haptic/
DSDL_syshaptic.h49 struct haptic_hwdata *hwdata; /* Driver dependent */ member