Searched refs:neffects (Results 1 – 8 of 8) sorted by relevance
126 haptic->neffects = 1; in OpenHaptic()127 haptic->nplaying = haptic->neffects; in OpenHaptic()128 …c->effects = (struct haptic_effect *)SDL_malloc (sizeof (struct haptic_effect) * haptic->neffects); in OpenHaptic()133 SDL_memset(haptic->effects, 0, sizeof (struct haptic_effect) * haptic->neffects); in OpenHaptic()
356 for (i = 0; i < haptic->neffects; i++) { in SDL_HapticClose()413 return haptic->neffects; in SDL_HapticNumEffects()492 for (i = 0; i < haptic->neffects; i++) { in SDL_HapticNewEffect()516 if ((effect < 0) || (effect >= haptic->neffects)) { in ValidEffect()
44 int neffects; /* Maximum amount of effects */ member
175 haptic->neffects = 1; in SDL_XINPUT_HapticOpenFromUserIndex()180 SDL_malloc(sizeof(struct haptic_effect) * haptic->neffects); in SDL_XINPUT_HapticOpenFromUserIndex()186 sizeof(struct haptic_effect) * haptic->neffects); in SDL_XINPUT_HapticOpenFromUserIndex()
236 haptic->neffects = 0; in SDL_SYS_HapticClose()
392 haptic->neffects = 128; /* This is not actually supported as thus under windows, in SDL_DINPUT_HapticOpenFromDevice()400 SDL_malloc(sizeof(struct haptic_effect) * haptic->neffects); in SDL_DINPUT_HapticOpenFromDevice()407 sizeof(struct haptic_effect) * haptic->neffects); in SDL_DINPUT_HapticOpenFromDevice()
417 if (ioctl(fd, EVIOCGEFFECTS, &haptic->neffects) < 0) { in SDL_SYS_HapticOpenFromFD()422 haptic->nplaying = haptic->neffects; /* Linux makes no distinction. */ in SDL_SYS_HapticOpenFromFD()424 SDL_malloc(sizeof(struct haptic_effect) * haptic->neffects); in SDL_SYS_HapticOpenFromFD()431 sizeof(struct haptic_effect) * haptic->neffects); in SDL_SYS_HapticOpenFromFD()605 haptic->neffects = 0; in SDL_SYS_HapticClose()1173 for (i = 0; i < haptic->neffects; i++) { in SDL_SYS_HapticStopAll()
434 haptic->neffects = features.storageCapacity; in GetSupportedFeatures()538 SDL_malloc(sizeof(struct haptic_effect) * haptic->neffects); in SDL_SYS_HapticOpenFromService()545 sizeof(struct haptic_effect) * haptic->neffects); in SDL_SYS_HapticOpenFromService()673 haptic->neffects = 0; in SDL_SYS_HapticClose()
Completed in 17 milliseconds