Home
last modified time | relevance | path

Searched refs:linux_effect (Results 1 – 6 of 6) sorted by relevance

/dports/emulators/mess/mame-mame0226/3rdparty/SDL2/src/haptic/linux/
H A DSDL_syshaptic.c930 struct ff_effect *linux_effect; in SDL_SYS_HapticNewEffect() local
940 linux_effect = &effect->hweffect->effect; in SDL_SYS_HapticNewEffect()
941 if (SDL_SYS_ToFFEffect(linux_effect, base) != 0) { in SDL_SYS_HapticNewEffect()
944 linux_effect->id = -1; /* Have the kernel give it an id */ in SDL_SYS_HapticNewEffect()
947 if (ioctl(haptic->hwdata->fd, EVIOCSFF, linux_effect) < 0) { in SDL_SYS_HapticNewEffect()
973 struct ff_effect linux_effect; in SDL_SYS_HapticUpdateEffect() local
976 if (SDL_SYS_ToFFEffect(&linux_effect, data) != 0) { in SDL_SYS_HapticUpdateEffect()
979 linux_effect.id = effect->hweffect->effect.id; in SDL_SYS_HapticUpdateEffect()
982 if (ioctl(haptic->hwdata->fd, EVIOCSFF, &linux_effect) < 0) { in SDL_SYS_HapticUpdateEffect()
988 SDL_memcpy(&effect->hweffect->effect, &linux_effect, in SDL_SYS_HapticUpdateEffect()
/dports/emulators/mame/mame-mame0226/3rdparty/SDL2/src/haptic/linux/
H A DSDL_syshaptic.c930 struct ff_effect *linux_effect; in SDL_SYS_HapticNewEffect() local
940 linux_effect = &effect->hweffect->effect; in SDL_SYS_HapticNewEffect()
941 if (SDL_SYS_ToFFEffect(linux_effect, base) != 0) { in SDL_SYS_HapticNewEffect()
944 linux_effect->id = -1; /* Have the kernel give it an id */ in SDL_SYS_HapticNewEffect()
947 if (ioctl(haptic->hwdata->fd, EVIOCSFF, linux_effect) < 0) { in SDL_SYS_HapticNewEffect()
973 struct ff_effect linux_effect; in SDL_SYS_HapticUpdateEffect() local
976 if (SDL_SYS_ToFFEffect(&linux_effect, data) != 0) { in SDL_SYS_HapticUpdateEffect()
979 linux_effect.id = effect->hweffect->effect.id; in SDL_SYS_HapticUpdateEffect()
982 if (ioctl(haptic->hwdata->fd, EVIOCSFF, &linux_effect) < 0) { in SDL_SYS_HapticUpdateEffect()
988 SDL_memcpy(&effect->hweffect->effect, &linux_effect, in SDL_SYS_HapticUpdateEffect()
/dports/graphics/urho3d/Urho3D-1.7.1/Source/ThirdParty/SDL/src/haptic/linux/
H A DSDL_syshaptic.c930 struct ff_effect *linux_effect; in SDL_SYS_HapticNewEffect() local
940 linux_effect = &effect->hweffect->effect; in SDL_SYS_HapticNewEffect()
941 if (SDL_SYS_ToFFEffect(linux_effect, base) != 0) { in SDL_SYS_HapticNewEffect()
944 linux_effect->id = -1; /* Have the kernel give it an id */ in SDL_SYS_HapticNewEffect()
947 if (ioctl(haptic->hwdata->fd, EVIOCSFF, linux_effect) < 0) { in SDL_SYS_HapticNewEffect()
973 struct ff_effect linux_effect; in SDL_SYS_HapticUpdateEffect() local
976 if (SDL_SYS_ToFFEffect(&linux_effect, data) != 0) { in SDL_SYS_HapticUpdateEffect()
979 linux_effect.id = effect->hweffect->effect.id; in SDL_SYS_HapticUpdateEffect()
982 if (ioctl(haptic->hwdata->fd, EVIOCSFF, &linux_effect) < 0) { in SDL_SYS_HapticUpdateEffect()
988 SDL_memcpy(&effect->hweffect->effect, &linux_effect, in SDL_SYS_HapticUpdateEffect()
/dports/graphics/milton/milton-1.9.1/third_party/SDL2-2.0.8/src/haptic/linux/
H A DSDL_syshaptic.c930 struct ff_effect *linux_effect; in SDL_SYS_HapticNewEffect() local
940 linux_effect = &effect->hweffect->effect; in SDL_SYS_HapticNewEffect()
941 if (SDL_SYS_ToFFEffect(linux_effect, base) != 0) { in SDL_SYS_HapticNewEffect()
944 linux_effect->id = -1; /* Have the kernel give it an id */ in SDL_SYS_HapticNewEffect()
947 if (ioctl(haptic->hwdata->fd, EVIOCSFF, linux_effect) < 0) { in SDL_SYS_HapticNewEffect()
973 struct ff_effect linux_effect; in SDL_SYS_HapticUpdateEffect() local
976 if (SDL_SYS_ToFFEffect(&linux_effect, data) != 0) { in SDL_SYS_HapticUpdateEffect()
979 linux_effect.id = effect->hweffect->effect.id; in SDL_SYS_HapticUpdateEffect()
982 if (ioctl(haptic->hwdata->fd, EVIOCSFF, &linux_effect) < 0) { in SDL_SYS_HapticUpdateEffect()
988 SDL_memcpy(&effect->hweffect->effect, &linux_effect, in SDL_SYS_HapticUpdateEffect()
/dports/devel/sdl20/SDL2-2.0.18/src/haptic/linux/
H A DSDL_syshaptic.c952 struct ff_effect *linux_effect; in SDL_SYS_HapticNewEffect() local
962 linux_effect = &effect->hweffect->effect; in SDL_SYS_HapticNewEffect()
963 if (SDL_SYS_ToFFEffect(linux_effect, base) != 0) { in SDL_SYS_HapticNewEffect()
966 linux_effect->id = -1; /* Have the kernel give it an id */ in SDL_SYS_HapticNewEffect()
969 if (ioctl(haptic->hwdata->fd, EVIOCSFF, linux_effect) < 0) { in SDL_SYS_HapticNewEffect()
995 struct ff_effect linux_effect; in SDL_SYS_HapticUpdateEffect() local
998 if (SDL_SYS_ToFFEffect(&linux_effect, data) != 0) { in SDL_SYS_HapticUpdateEffect()
1001 linux_effect.id = effect->hweffect->effect.id; in SDL_SYS_HapticUpdateEffect()
1004 if (ioctl(haptic->hwdata->fd, EVIOCSFF, &linux_effect) < 0) { in SDL_SYS_HapticUpdateEffect()
1010 SDL_memcpy(&effect->hweffect->effect, &linux_effect, in SDL_SYS_HapticUpdateEffect()
/dports/x11/controllermap/SDL2-2.0.18/src/haptic/linux/
H A DSDL_syshaptic.c952 struct ff_effect *linux_effect; in SDL_SYS_HapticNewEffect() local
962 linux_effect = &effect->hweffect->effect; in SDL_SYS_HapticNewEffect()
963 if (SDL_SYS_ToFFEffect(linux_effect, base) != 0) { in SDL_SYS_HapticNewEffect()
966 linux_effect->id = -1; /* Have the kernel give it an id */ in SDL_SYS_HapticNewEffect()
969 if (ioctl(haptic->hwdata->fd, EVIOCSFF, linux_effect) < 0) { in SDL_SYS_HapticNewEffect()
995 struct ff_effect linux_effect; in SDL_SYS_HapticUpdateEffect() local
998 if (SDL_SYS_ToFFEffect(&linux_effect, data) != 0) { in SDL_SYS_HapticUpdateEffect()
1001 linux_effect.id = effect->hweffect->effect.id; in SDL_SYS_HapticUpdateEffect()
1004 if (ioctl(haptic->hwdata->fd, EVIOCSFF, &linux_effect) < 0) { in SDL_SYS_HapticUpdateEffect()
1010 SDL_memcpy(&effect->hweffect->effect, &linux_effect, in SDL_SYS_HapticUpdateEffect()