/third_party/flutter/skia/third_party/externals/sdl/src/haptic/ |
D | SDL_haptic.c | 52 ValidHaptic(SDL_Haptic * haptic) in ValidHaptic() argument 58 if (haptic != NULL) { in ValidHaptic() 62 if (hapticlist == haptic) { in ValidHaptic() 110 SDL_Haptic *haptic; in SDL_HapticOpen() local 126 haptic = hapticlist; in SDL_HapticOpen() 127 ++haptic->ref_count; in SDL_HapticOpen() 128 return haptic; in SDL_HapticOpen() 134 haptic = (SDL_Haptic *) SDL_malloc((sizeof *haptic)); in SDL_HapticOpen() 135 if (haptic == NULL) { in SDL_HapticOpen() 141 SDL_memset(haptic, 0, (sizeof *haptic)); in SDL_HapticOpen() [all …]
|
D | SDL_syshaptic.h | 78 extern int SDL_SYS_HapticOpen(SDL_Haptic * haptic); 99 extern int SDL_SYS_HapticOpenFromJoystick(SDL_Haptic * haptic, 106 extern int SDL_SYS_JoystickSameHaptic(SDL_Haptic * haptic, 112 extern void SDL_SYS_HapticClose(SDL_Haptic * haptic); 125 extern int SDL_SYS_HapticNewEffect(SDL_Haptic * haptic, 135 extern int SDL_SYS_HapticUpdateEffect(SDL_Haptic * haptic, 144 extern int SDL_SYS_HapticRunEffect(SDL_Haptic * haptic, 153 extern int SDL_SYS_HapticStopEffect(SDL_Haptic * haptic, 159 extern void SDL_SYS_HapticDestroyEffect(SDL_Haptic * haptic, 168 extern int SDL_SYS_HapticGetEffectStatus(SDL_Haptic * haptic, [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/haptic/windows/ |
D | SDL_xinputhaptic.c | 167 SDL_XINPUT_HapticOpenFromUserIndex(SDL_Haptic *haptic, const Uint8 userid) in SDL_XINPUT_HapticOpenFromUserIndex() argument 173 haptic->supported = SDL_HAPTIC_LEFTRIGHT; in SDL_XINPUT_HapticOpenFromUserIndex() 175 haptic->neffects = 1; in SDL_XINPUT_HapticOpenFromUserIndex() 176 haptic->nplaying = 1; in SDL_XINPUT_HapticOpenFromUserIndex() 179 haptic->effects = (struct haptic_effect *) in SDL_XINPUT_HapticOpenFromUserIndex() 180 SDL_malloc(sizeof(struct haptic_effect) * haptic->neffects); in SDL_XINPUT_HapticOpenFromUserIndex() 181 if (haptic->effects == NULL) { in SDL_XINPUT_HapticOpenFromUserIndex() 185 SDL_memset(haptic->effects, 0, in SDL_XINPUT_HapticOpenFromUserIndex() 186 sizeof(struct haptic_effect) * haptic->neffects); in SDL_XINPUT_HapticOpenFromUserIndex() 188 haptic->hwdata = (struct haptic_hwdata *) SDL_malloc(sizeof(*haptic->hwdata)); in SDL_XINPUT_HapticOpenFromUserIndex() [all …]
|
D | SDL_windowshaptic.c | 84 const int retval = item->haptic ? item->haptic->index : -1; in SDL_SYS_RemoveHapticDevice() 137 SDL_SYS_HapticOpen(SDL_Haptic * haptic) in SDL_SYS_HapticOpen() argument 139 SDL_hapticlist_item *item = HapticByDevIndex(haptic->index); in SDL_SYS_HapticOpen() 141 return SDL_XINPUT_HapticOpen(haptic, item); in SDL_SYS_HapticOpen() 143 return SDL_DINPUT_HapticOpen(haptic, item); in SDL_SYS_HapticOpen() 194 SDL_SYS_JoystickSameHaptic(SDL_Haptic * haptic, SDL_Joystick * joystick) in SDL_SYS_JoystickSameHaptic() argument 196 if (joystick->hwdata->bXInputHaptic != haptic->hwdata->bXInputHaptic) { in SDL_SYS_JoystickSameHaptic() 199 return SDL_XINPUT_JoystickSameHaptic(haptic, joystick); in SDL_SYS_JoystickSameHaptic() 201 return SDL_DINPUT_JoystickSameHaptic(haptic, joystick); in SDL_SYS_JoystickSameHaptic() 209 SDL_SYS_HapticOpenFromJoystick(SDL_Haptic * haptic, SDL_Joystick * joystick) in SDL_SYS_HapticOpenFromJoystick() argument [all …]
|
D | SDL_dinputhaptic.c | 217 SDL_Haptic *haptic = (SDL_Haptic *) pvRef; in DI_DeviceObjectCallback() local 238 haptic->hwdata->axes[haptic->naxes] = offset; in DI_DeviceObjectCallback() 239 haptic->naxes++; in DI_DeviceObjectCallback() 242 if (haptic->naxes >= 3) { in DI_DeviceObjectCallback() 255 haptic->supported |= (s) 260 SDL_Haptic *haptic = (SDL_Haptic *) pv; in DI_EffectCallback() local 292 SDL_DINPUT_HapticOpenFromDevice(SDL_Haptic * haptic, LPDIRECTINPUTDEVICE8 device8, SDL_bool is_joys… in SDL_DINPUT_HapticOpenFromDevice() argument 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() [all …]
|
D | SDL_xinputhaptic_c.h | 30 extern int SDL_XINPUT_HapticOpen(SDL_Haptic * haptic, SDL_hapticlist_item *item); 31 extern int SDL_XINPUT_JoystickSameHaptic(SDL_Haptic * haptic, SDL_Joystick * joystick); 32 extern int SDL_XINPUT_HapticOpenFromJoystick(SDL_Haptic * haptic, SDL_Joystick * joystick); 33 extern void SDL_XINPUT_HapticClose(SDL_Haptic * haptic); 35 extern int SDL_XINPUT_HapticNewEffect(SDL_Haptic * haptic, struct haptic_effect *effect, SDL_Haptic… 36 extern int SDL_XINPUT_HapticUpdateEffect(SDL_Haptic * haptic, struct haptic_effect *effect, SDL_Hap… 37 extern int SDL_XINPUT_HapticRunEffect(SDL_Haptic * haptic, struct haptic_effect *effect, Uint32 ite… 38 extern int SDL_XINPUT_HapticStopEffect(SDL_Haptic * haptic, struct haptic_effect *effect); 39 extern void SDL_XINPUT_HapticDestroyEffect(SDL_Haptic * haptic, struct haptic_effect *effect); 40 extern int SDL_XINPUT_HapticGetEffectStatus(SDL_Haptic * haptic, struct haptic_effect *effect); [all …]
|
D | SDL_dinputhaptic_c.h | 30 extern int SDL_DINPUT_HapticOpen(SDL_Haptic * haptic, SDL_hapticlist_item *item); 31 extern int SDL_DINPUT_JoystickSameHaptic(SDL_Haptic * haptic, SDL_Joystick * joystick); 32 extern int SDL_DINPUT_HapticOpenFromJoystick(SDL_Haptic * haptic, SDL_Joystick * joystick); 33 extern void SDL_DINPUT_HapticClose(SDL_Haptic * haptic); 35 extern int SDL_DINPUT_HapticNewEffect(SDL_Haptic * haptic, struct haptic_effect *effect, SDL_Haptic… 36 extern int SDL_DINPUT_HapticUpdateEffect(SDL_Haptic * haptic, struct haptic_effect *effect, SDL_Hap… 37 extern int SDL_DINPUT_HapticRunEffect(SDL_Haptic * haptic, struct haptic_effect *effect, Uint32 ite… 38 extern int SDL_DINPUT_HapticStopEffect(SDL_Haptic * haptic, struct haptic_effect *effect); 39 extern void SDL_DINPUT_HapticDestroyEffect(SDL_Haptic * haptic, struct haptic_effect *effect); 40 extern int SDL_DINPUT_HapticGetEffectStatus(SDL_Haptic * haptic, struct haptic_effect *effect); [all …]
|
D | SDL_windowshaptic_c.h | 70 SDL_Haptic *haptic; member
|
/third_party/flutter/skia/third_party/externals/sdl/src/haptic/linux/ |
D | SDL_syshaptic.c | 61 SDL_Haptic *haptic; /* Associated haptic. */ member 320 const int retval = item->haptic ? item->haptic->index : -1; in MaybeRemoveDevice() 397 SDL_SYS_HapticOpenFromFD(SDL_Haptic * haptic, int fd) in SDL_SYS_HapticOpenFromFD() argument 400 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() 410 haptic->supported = EV_IsHaptic(fd); in SDL_SYS_HapticOpenFromFD() 411 haptic->naxes = 2; /* Hardcoded for now, not sure if it's possible to find out. */ in SDL_SYS_HapticOpenFromFD() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/haptic/dummy/ |
D | SDL_syshaptic.c | 57 SDL_SYS_HapticOpen(SDL_Haptic * haptic) in SDL_SYS_HapticOpen() argument 78 SDL_SYS_HapticOpenFromJoystick(SDL_Haptic * haptic, SDL_Joystick * joystick) in SDL_SYS_HapticOpenFromJoystick() argument 85 SDL_SYS_JoystickSameHaptic(SDL_Haptic * haptic, SDL_Joystick * joystick) in SDL_SYS_JoystickSameHaptic() argument 92 SDL_SYS_HapticClose(SDL_Haptic * haptic) in SDL_SYS_HapticClose() argument 106 SDL_SYS_HapticNewEffect(SDL_Haptic * haptic, in SDL_SYS_HapticNewEffect() argument 114 SDL_SYS_HapticUpdateEffect(SDL_Haptic * haptic, in SDL_SYS_HapticUpdateEffect() argument 123 SDL_SYS_HapticRunEffect(SDL_Haptic * haptic, struct haptic_effect *effect, in SDL_SYS_HapticRunEffect() argument 131 SDL_SYS_HapticStopEffect(SDL_Haptic * haptic, struct haptic_effect *effect) in SDL_SYS_HapticStopEffect() argument 138 SDL_SYS_HapticDestroyEffect(SDL_Haptic * haptic, struct haptic_effect *effect) in SDL_SYS_HapticDestroyEffect() argument 146 SDL_SYS_HapticGetEffectStatus(SDL_Haptic * haptic, in SDL_SYS_HapticGetEffectStatus() argument [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/haptic/darwin/ |
D | SDL_syshaptic.c | 52 SDL_Haptic *haptic; /* Haptic currently associated with it. */ member 304 const int retval = item->haptic ? item->haptic->index : -1; in MacHaptic_MaybeRemoveDevice() 416 GetSupportedFeatures(SDL_Haptic * haptic) in GetSupportedFeatures() argument 424 device = haptic->hwdata->device; in GetSupportedFeatures() 434 haptic->neffects = features.storageCapacity; in GetSupportedFeatures() 435 haptic->nplaying = features.playbackCapacity; in GetSupportedFeatures() 474 haptic->naxes = ((features.numFfAxes) > 3) ? 3 : features.numFfAxes; in GetSupportedFeatures() 476 SDL_memcpy(haptic->hwdata->axes, features.ffAxes, in GetSupportedFeatures() 477 haptic->naxes * sizeof(Uint8)); in GetSupportedFeatures() 482 haptic->supported = supported; in GetSupportedFeatures() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/include/ |
D | SDL_haptic.h | 863 extern DECLSPEC int SDLCALL SDL_HapticIndex(SDL_Haptic * haptic); 920 extern DECLSPEC void SDLCALL SDL_HapticClose(SDL_Haptic * haptic); 936 extern DECLSPEC int SDLCALL SDL_HapticNumEffects(SDL_Haptic * haptic); 952 extern DECLSPEC int SDLCALL SDL_HapticNumEffectsPlaying(SDL_Haptic * haptic); 970 extern DECLSPEC unsigned int SDLCALL SDL_HapticQuery(SDL_Haptic * haptic); 978 extern DECLSPEC int SDLCALL SDL_HapticNumAxes(SDL_Haptic * haptic); 990 extern DECLSPEC int SDLCALL SDL_HapticEffectSupported(SDL_Haptic * haptic, 1005 extern DECLSPEC int SDLCALL SDL_HapticNewEffect(SDL_Haptic * haptic, 1025 extern DECLSPEC int SDLCALL SDL_HapticUpdateEffect(SDL_Haptic * haptic, 1047 extern DECLSPEC int SDLCALL SDL_HapticRunEffect(SDL_Haptic * haptic, [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/test/ |
D | testhaptic.c | 25 static SDL_Haptic *haptic; variable 32 static void HapticPrintSupported(SDL_Haptic * haptic); 96 haptic = SDL_HapticOpen(i); in main() 97 if (haptic == NULL) { in main() 103 HapticPrintSupported(haptic); in main() 115 supported = SDL_HapticQuery(haptic); in main() 128 id[nefx] = SDL_HapticNewEffect(haptic, &efx[nefx]); in main() 144 id[nefx] = SDL_HapticNewEffect(haptic, &efx[nefx]); in main() 162 id[nefx] = SDL_HapticNewEffect(haptic, &efx[nefx]); in main() 175 for (i = 0; i < SDL_HapticNumAxes(haptic); i++) { in main() [all …]
|
D | testhotplug.c | 27 SDL_Haptic *haptic = NULL; in main() local 87 haptic = SDL_HapticOpenFromJoystick(joystick); in main() 88 if (haptic) in main() 91 if (SDL_HapticRumbleInit( haptic ) != 0) in main() 94 SDL_HapticClose(haptic); in main() 95 haptic = NULL; in main() 113 if(enable_haptic && haptic) in main() 115 SDL_HapticClose(haptic); in main() 116 haptic = NULL; in main() 129 SDL_HapticRumblePlay(haptic, 0.25, 250); in main() [all …]
|
D | testrumble.c | 36 static SDL_Haptic *haptic; variable 96 haptic = SDL_HapticOpen(i); in main() 97 if (haptic == NULL) { in main() 111 if (SDL_HapticRumbleSupported(haptic) == SDL_FALSE) { in main() 115 if (SDL_HapticRumbleInit(haptic) != 0) { in main() 120 if (SDL_HapticRumblePlay(haptic, 0.5, 5000) != 0) { in main() 126 SDL_HapticRumbleStop(haptic); in main() 129 if (SDL_HapticRumblePlay(haptic, 0.3f, 5000) != 0) { in main() 136 if (haptic != NULL) in main() 137 SDL_HapticClose(haptic); in main()
|
/third_party/flutter/flutter/packages/flutter/lib/src/services/ |
D | haptic_feedback.dart | 9 /// Allows access to the haptic feedback interface on the device. 12 /// is not suitable for precise control of the system's haptic feedback module. 16 /// Provides vibration haptic feedback to the user for a short duration. 18 /// On iOS devices that support haptic feedback, this uses the default system 21 /// On Android, this uses the platform haptic feedback API to simulate a 27 /// Provides a haptic feedback corresponding a collision impact with a light mass. 41 /// Provides a haptic feedback corresponding a collision impact with a medium mass. 55 /// Provides a haptic feedback corresponding a collision impact with a heavy mass. 70 /// Provides a haptic feedback indication selection changing through discrete values.
|
/third_party/flutter/skia/third_party/externals/sdl/ |
D | Makefile.minimal | 16 src/haptic/*.c \ 17 src/haptic/dummy/*.c \
|
D | Android.mk | 30 $(wildcard $(LOCAL_PATH)/src/haptic/*.c) \ 31 $(wildcard $(LOCAL_PATH)/src/haptic/dummy/*.c) \
|
D | Makefile.pandora | 17 ./src/joystick/*.c ./src/haptic/*.c ./src/power/*.c ./src/video/dummy/*.c ./src/audio/disk/*.c \ 21 ./src/joystick/linux/*.c ./src/haptic/linux/*.c ./src/timer/unix/*.c \
|
D | Makefile.wiz | 17 ./src/joystick/*.c ./src/haptic/*.c ./src/video/dummy/*.c ./src/audio/disk/*.c \ 21 ./src/joystick/linux/*.c ./src/haptic/linux/*.c ./src/timer/unix/*.c \
|
D | Makefile.psp | 27 src/haptic/SDL_haptic.o \ 28 src/haptic/dummy/SDL_syshaptic.o \
|
/third_party/flutter/skia/third_party/externals/sdl/docs/ |
D | README-porting.md | 39 src/haptic/*.c 51 src/haptic/dummy/*.c
|
/third_party/flutter/flutter/packages/flutter/test/material/ |
D | feedback_tester.dart | 22 /// Number of times haptic feedback was requested (vibration).
|
/third_party/flutter/flutter/packages/flutter/lib/src/material/ |
D | feedback.dart | 14 /// Provides platform-specific acoustic and/or haptic feedback for certain 25 /// typically don't provide haptic or acoustic feedback.
|
/third_party/flutter/skia/third_party/libsdl/ |
D | BUILD.gn | 41 "../externals/sdl/src/haptic/SDL_haptic.c", 42 "../externals/sdl/src/haptic/dummy/SDL_syshaptic.c",
|