sdl3/generated/lib_sdl_haptic library

Functions

sdlCloseHaptic(Pointer<SdlHaptic> haptic) → void
Close a haptic device previously opened with SDL_OpenHaptic().
sdlCreateHapticEffect(Pointer<SdlHaptic> haptic, Pointer<SdlHapticEffect> effect) int
Create a new haptic effect on a specified device.
sdlDestroyHapticEffect(Pointer<SdlHaptic> haptic, int effect) → void
Destroy a haptic effect on the device.
sdlGetHapticEffectStatus(Pointer<SdlHaptic> haptic, int effect) bool
Get the status of the current effect on the specified haptic device.
sdlGetHapticFeatures(Pointer<SdlHaptic> haptic) int
Get the haptic device's supported features in bitwise manner.
sdlGetHapticFromId(int instanceId) Pointer<SdlHaptic>
Get the SDL_Haptic associated with an instance ID, if it has been opened.
sdlGetHapticId(Pointer<SdlHaptic> haptic) int
Get the instance ID of an opened haptic device.
sdlGetHapticName(Pointer<SdlHaptic> haptic) String?
Get the implementation dependent name of a haptic device.
sdlGetHapticNameForId(int instanceId) String?
Get the implementation dependent name of a haptic device.
sdlGetHaptics(Pointer<Int32> count) Pointer<Uint32>
Get a list of currently connected haptic devices.
sdlGetMaxHapticEffects(Pointer<SdlHaptic> haptic) int
Get the number of effects a haptic device can store.
sdlGetMaxHapticEffectsPlaying(Pointer<SdlHaptic> haptic) int
Get the number of effects a haptic device can play at the same time.
sdlGetNumHapticAxes(Pointer<SdlHaptic> haptic) int
Get the number of haptic axes the device has.
sdlHapticEffectSupported(Pointer<SdlHaptic> haptic, Pointer<SdlHapticEffect> effect) bool
Check to see if an effect is supported by a haptic device.
sdlHapticRumbleSupported(Pointer<SdlHaptic> haptic) bool
Check whether rumble is supported on a haptic device.
sdlInitHapticRumble(Pointer<SdlHaptic> haptic) bool
Initialize a haptic device for simple rumble playback.
sdlIsJoystickHaptic(Pointer<SdlJoystick> joystick) bool
Query if a joystick has haptic features.
sdlIsMouseHaptic() bool
Query whether or not the current mouse has haptic capabilities.
sdlOpenHaptic(int instanceId) Pointer<SdlHaptic>
Open a haptic device for use.
sdlOpenHapticFromJoystick(Pointer<SdlJoystick> joystick) Pointer<SdlHaptic>
Open a haptic device for use from a joystick device.
sdlOpenHapticFromMouse() Pointer<SdlHaptic>
Try to open a haptic device from the current mouse.
sdlPauseHaptic(Pointer<SdlHaptic> haptic) bool
Pause a haptic device.
sdlPlayHapticRumble(Pointer<SdlHaptic> haptic, double strength, int length) bool
Run a simple rumble effect on a haptic device.
sdlResumeHaptic(Pointer<SdlHaptic> haptic) bool
Resume a haptic device.
sdlRunHapticEffect(Pointer<SdlHaptic> haptic, int effect, int iterations) bool
Run the haptic effect on its associated haptic device.
sdlSetHapticAutocenter(Pointer<SdlHaptic> haptic, int autocenter) bool
Set the global autocenter of the device.
sdlSetHapticGain(Pointer<SdlHaptic> haptic, int gain) bool
Set the global gain of the specified haptic device.
sdlStopHapticEffect(Pointer<SdlHaptic> haptic, int effect) bool
Stop the haptic effect on its associated haptic device.
sdlStopHapticEffects(Pointer<SdlHaptic> haptic) bool
Stop all the currently playing effects on a haptic device.
sdlStopHapticRumble(Pointer<SdlHaptic> haptic) bool
Stop the simple rumble on a haptic device.
sdlUpdateHapticEffect(Pointer<SdlHaptic> haptic, int effect, Pointer<SdlHapticEffect> data) bool
Update the properties of an effect.