Lines Matching refs:hwdata

424     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()
553 if (haptic->hwdata != NULL) { in SDL_SYS_HapticOpenFromService()
554 SDL_free(haptic->hwdata); in SDL_SYS_HapticOpenFromService()
555 haptic->hwdata = NULL; in SDL_SYS_HapticOpenFromService()
606 if (joystick->hwdata->ffservice != 0) { in SDL_SYS_JoystickIsHaptic()
624 if (IOObjectIsEqualTo((io_object_t) ((size_t)haptic->hwdata->device), in SDL_SYS_JoystickSameHaptic()
625 joystick->hwdata->ffservice)) { in SDL_SYS_JoystickSameHaptic()
648 joystick->hwdata->ffservice)) { in SDL_SYS_HapticOpenFromJoystick()
655 return SDL_SYS_HapticOpenFromService(haptic, joystick->hwdata->ffservice); in SDL_SYS_HapticOpenFromJoystick()
668 if (haptic->hwdata) { in SDL_SYS_HapticClose()
676 FFReleaseDevice(haptic->hwdata->device); in SDL_SYS_HapticClose()
679 SDL_free(haptic->hwdata); in SDL_SYS_HapticClose()
680 haptic->hwdata = NULL; in SDL_SYS_HapticClose()
838 axes[0] = haptic->hwdata->axes[0]; /* Always at least one axis. */ in SDL_SYS_ToFFEFFECT()
840 axes[1] = haptic->hwdata->axes[1]; in SDL_SYS_ToFFEFFECT()
843 axes[2] = haptic->hwdata->axes[2]; in SDL_SYS_ToFFEFFECT()
1186 ret = FFDeviceCreateEffect(haptic->hwdata->device, type, in SDL_SYS_HapticNewEffect()
1304 ret = FFDeviceReleaseEffect(haptic->hwdata->device, effect->hweffect->ref); in SDL_SYS_HapticDestroyEffect()
1350 ret = FFDeviceSetForceFeedbackProperty(haptic->hwdata->device, in SDL_SYS_HapticSetGain()
1376 ret = FFDeviceSetForceFeedbackProperty(haptic->hwdata->device, in SDL_SYS_HapticSetAutocenter()
1395 ret = FFDeviceSendForceFeedbackCommand(haptic->hwdata->device, in SDL_SYS_HapticPause()
1413 ret = FFDeviceSendForceFeedbackCommand(haptic->hwdata->device, in SDL_SYS_HapticUnpause()
1431 ret = FFDeviceSendForceFeedbackCommand(haptic->hwdata->device, in SDL_SYS_HapticStopAll()