Home
last modified time | relevance | path

Searched refs:haptic (Results 1 – 25 of 45) sorted by relevance

12

/third_party/flutter/skia/third_party/externals/sdl/src/haptic/
DSDL_haptic.c52 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 …]
DSDL_syshaptic.h78 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/
DSDL_xinputhaptic.c167 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 …]
DSDL_windowshaptic.c84 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 …]
DSDL_dinputhaptic.c217 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 …]
DSDL_xinputhaptic_c.h30 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 …]
DSDL_dinputhaptic_c.h30 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 …]
DSDL_windowshaptic_c.h70 SDL_Haptic *haptic; member
/third_party/flutter/skia/third_party/externals/sdl/src/haptic/linux/
DSDL_syshaptic.c61 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/
DSDL_syshaptic.c57 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/
DSDL_syshaptic.c52 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/
DSDL_haptic.h863 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/
Dtesthaptic.c25 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 …]
Dtesthotplug.c27 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 …]
Dtestrumble.c36 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/
Dhaptic_feedback.dart9 /// 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/
DMakefile.minimal16 src/haptic/*.c \
17 src/haptic/dummy/*.c \
DAndroid.mk30 $(wildcard $(LOCAL_PATH)/src/haptic/*.c) \
31 $(wildcard $(LOCAL_PATH)/src/haptic/dummy/*.c) \
DMakefile.pandora17 ./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 \
DMakefile.wiz17 ./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 \
DMakefile.psp27 src/haptic/SDL_haptic.o \
28 src/haptic/dummy/SDL_syshaptic.o \
/third_party/flutter/skia/third_party/externals/sdl/docs/
DREADME-porting.md39 src/haptic/*.c
51 src/haptic/dummy/*.c
/third_party/flutter/flutter/packages/flutter/test/material/
Dfeedback_tester.dart22 /// Number of times haptic feedback was requested (vibration).
/third_party/flutter/flutter/packages/flutter/lib/src/material/
Dfeedback.dart14 /// 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/
DBUILD.gn41 "../externals/sdl/src/haptic/SDL_haptic.c",
42 "../externals/sdl/src/haptic/dummy/SDL_syshaptic.c",

12