Home
last modified time | relevance | path

Searched refs:neffects (Results 1 – 8 of 8) sorted by relevance

/AliOS-Things-master/components/SDL2/src/haptic/android/
A DSDL_syshaptic.c126 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()
/AliOS-Things-master/components/SDL2/src/haptic/
A DSDL_haptic.c356 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()
A DSDL_syshaptic.h44 int neffects; /* Maximum amount of effects */ member
/AliOS-Things-master/components/SDL2/src/haptic/windows/
A DSDL_xinputhaptic.c175 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()
A DSDL_windowshaptic.c236 haptic->neffects = 0; in SDL_SYS_HapticClose()
A DSDL_dinputhaptic.c392 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()
/AliOS-Things-master/components/SDL2/src/haptic/linux/
A DSDL_syshaptic.c417 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()
/AliOS-Things-master/components/SDL2/src/haptic/darwin/
A DSDL_syshaptic.c434 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