Lines Matching refs:dest

606 SDL_SYS_ToDIEFFECT(SDL_Haptic * haptic, DIEFFECT * dest,  in SDL_SYS_ToDIEFFECT()  argument
624 SDL_memset(dest, 0, sizeof(DIEFFECT)); in SDL_SYS_ToDIEFFECT()
625 dest->dwSize = sizeof(DIEFFECT); /* Set the structure size. */ in SDL_SYS_ToDIEFFECT()
626 dest->dwSamplePeriod = 0; /* Not used by us. */ in SDL_SYS_ToDIEFFECT()
627 dest->dwGain = 10000; /* Gain is set globally, not locally. */ in SDL_SYS_ToDIEFFECT()
628 dest->dwFlags = DIEFF_OBJECTOFFSETS; /* Seems obligatory. */ in SDL_SYS_ToDIEFFECT()
636 dest->lpEnvelope = envelope; in SDL_SYS_ToDIEFFECT()
641 dest->cAxes = 1; in SDL_SYS_ToDIEFFECT()
643 dest->cAxes = haptic->naxes; in SDL_SYS_ToDIEFFECT()
645 if (dest->cAxes > 0) { in SDL_SYS_ToDIEFFECT()
646 axes = SDL_malloc(sizeof(DWORD) * dest->cAxes); in SDL_SYS_ToDIEFFECT()
651 if (dest->cAxes > 1) { in SDL_SYS_ToDIEFFECT()
654 if (dest->cAxes > 2) { in SDL_SYS_ToDIEFFECT()
657 dest->rgdwAxes = axes; in SDL_SYS_ToDIEFFECT()
672 dest->cbTypeSpecificParams = sizeof(DICONSTANTFORCE); in SDL_SYS_ToDIEFFECT()
673 dest->lpvTypeSpecificParams = constant; in SDL_SYS_ToDIEFFECT()
676 dest->dwDuration = hap_constant->length * 1000; /* In microseconds. */ in SDL_SYS_ToDIEFFECT()
677 dest->dwTriggerButton = DIGetTriggerButton(hap_constant->button); in SDL_SYS_ToDIEFFECT()
678 dest->dwTriggerRepeatInterval = hap_constant->interval; in SDL_SYS_ToDIEFFECT()
679 dest->dwStartDelay = hap_constant->delay * 1000; /* In microseconds. */ in SDL_SYS_ToDIEFFECT()
682 if (SDL_SYS_SetDirection(dest, &hap_constant->direction, dest->cAxes) < 0) { in SDL_SYS_ToDIEFFECT()
689 SDL_free(dest->lpEnvelope); in SDL_SYS_ToDIEFFECT()
690 dest->lpEnvelope = NULL; in SDL_SYS_ToDIEFFECT()
719 dest->cbTypeSpecificParams = sizeof(DIPERIODIC); in SDL_SYS_ToDIEFFECT()
720 dest->lpvTypeSpecificParams = periodic; in SDL_SYS_ToDIEFFECT()
723 dest->dwDuration = hap_periodic->length * 1000; /* In microseconds. */ in SDL_SYS_ToDIEFFECT()
724 dest->dwTriggerButton = DIGetTriggerButton(hap_periodic->button); in SDL_SYS_ToDIEFFECT()
725 dest->dwTriggerRepeatInterval = hap_periodic->interval; in SDL_SYS_ToDIEFFECT()
726 dest->dwStartDelay = hap_periodic->delay * 1000; /* In microseconds. */ in SDL_SYS_ToDIEFFECT()
729 if (SDL_SYS_SetDirection(dest, &hap_periodic->direction, dest->cAxes) in SDL_SYS_ToDIEFFECT()
737 SDL_free(dest->lpEnvelope); in SDL_SYS_ToDIEFFECT()
738 dest->lpEnvelope = NULL; in SDL_SYS_ToDIEFFECT()
753 condition = SDL_malloc(sizeof(DICONDITION) * dest->cAxes); in SDL_SYS_ToDIEFFECT()
760 for (i = 0; i < (int) dest->cAxes; i++) { in SDL_SYS_ToDIEFFECT()
772 dest->cbTypeSpecificParams = sizeof(DICONDITION) * dest->cAxes; in SDL_SYS_ToDIEFFECT()
773 dest->lpvTypeSpecificParams = condition; in SDL_SYS_ToDIEFFECT()
776 dest->dwDuration = hap_condition->length * 1000; /* In microseconds. */ in SDL_SYS_ToDIEFFECT()
777 dest->dwTriggerButton = DIGetTriggerButton(hap_condition->button); in SDL_SYS_ToDIEFFECT()
778 dest->dwTriggerRepeatInterval = hap_condition->interval; in SDL_SYS_ToDIEFFECT()
779 dest->dwStartDelay = hap_condition->delay * 1000; /* In microseconds. */ in SDL_SYS_ToDIEFFECT()
782 if (SDL_SYS_SetDirection(dest, &hap_condition->direction, dest->cAxes) in SDL_SYS_ToDIEFFECT()
788 SDL_free(dest->lpEnvelope); in SDL_SYS_ToDIEFFECT()
789 dest->lpEnvelope = NULL; in SDL_SYS_ToDIEFFECT()
804 dest->cbTypeSpecificParams = sizeof(DIRAMPFORCE); in SDL_SYS_ToDIEFFECT()
805 dest->lpvTypeSpecificParams = ramp; in SDL_SYS_ToDIEFFECT()
808 dest->dwDuration = hap_ramp->length * 1000; /* In microseconds. */ in SDL_SYS_ToDIEFFECT()
809 dest->dwTriggerButton = DIGetTriggerButton(hap_ramp->button); in SDL_SYS_ToDIEFFECT()
810 dest->dwTriggerRepeatInterval = hap_ramp->interval; in SDL_SYS_ToDIEFFECT()
811 dest->dwStartDelay = hap_ramp->delay * 1000; /* In microseconds. */ in SDL_SYS_ToDIEFFECT()
814 if (SDL_SYS_SetDirection(dest, &hap_ramp->direction, dest->cAxes) < 0) { in SDL_SYS_ToDIEFFECT()
820 SDL_free(dest->lpEnvelope); in SDL_SYS_ToDIEFFECT()
821 dest->lpEnvelope = NULL; in SDL_SYS_ToDIEFFECT()
848 dest->cbTypeSpecificParams = sizeof(DICUSTOMFORCE); in SDL_SYS_ToDIEFFECT()
849 dest->lpvTypeSpecificParams = custom; in SDL_SYS_ToDIEFFECT()
852 dest->dwDuration = hap_custom->length * 1000; /* In microseconds. */ in SDL_SYS_ToDIEFFECT()
853 dest->dwTriggerButton = DIGetTriggerButton(hap_custom->button); in SDL_SYS_ToDIEFFECT()
854 dest->dwTriggerRepeatInterval = hap_custom->interval; in SDL_SYS_ToDIEFFECT()
855 dest->dwStartDelay = hap_custom->delay * 1000; /* In microseconds. */ in SDL_SYS_ToDIEFFECT()
858 if (SDL_SYS_SetDirection(dest, &hap_custom->direction, dest->cAxes) < 0) { in SDL_SYS_ToDIEFFECT()
865 SDL_free(dest->lpEnvelope); in SDL_SYS_ToDIEFFECT()
866 dest->lpEnvelope = NULL; in SDL_SYS_ToDIEFFECT()