sdl2/generated/lib_sdl_haptic library

Functions

sdlHapticClose(Pointer<SdlHaptic> haptic) → void
Close a haptic device previously opened with SDL_HapticOpen().
sdlHapticDestroyEffect(Pointer<SdlHaptic> haptic, int effect) → void
Destroy a haptic effect on the device.
sdlHapticEffectSupported(Pointer<SdlHaptic> haptic, Pointer<SdlHapticEffect> effect) int
Check to see if an effect is supported by a haptic device.
sdlHapticGetEffectStatus(Pointer<SdlHaptic> haptic, int effect) int
Get the status of the current effect on the specified haptic device.
sdlHapticIndex(Pointer<SdlHaptic> haptic) int
Get the index of a haptic device.
sdlHapticName(int deviceIndex) String?
Get the implementation dependent name of a haptic device.
sdlHapticNewEffect(Pointer<SdlHaptic> haptic, Pointer<SdlHapticEffect> effect) int
Create a new haptic effect on a specified device.
sdlHapticNumAxes(Pointer<SdlHaptic> haptic) int
Get the number of haptic axes the device has.
sdlHapticNumEffects(Pointer<SdlHaptic> haptic) int
Get the number of effects a haptic device can store.
sdlHapticNumEffectsPlaying(Pointer<SdlHaptic> haptic) int
Get the number of effects a haptic device can play at the same time.
sdlHapticOpen(int deviceIndex) Pointer<SdlHaptic>
Open a haptic device for use.
sdlHapticOpened(int deviceIndex) int
Check if the haptic device at the designated index has been opened.
sdlHapticOpenFromJoystick(Pointer<SdlJoystick> joystick) Pointer<SdlHaptic>
Open a haptic device for use from a joystick device.
sdlHapticOpenFromMouse() Pointer<SdlHaptic>
Try to open a haptic device from the current mouse.
sdlHapticPause(Pointer<SdlHaptic> haptic) int
Pause a haptic device.
sdlHapticQuery(Pointer<SdlHaptic> haptic) int
Get the haptic device's supported features in bitwise manner.
sdlHapticRumbleInit(Pointer<SdlHaptic> haptic) int
Initialize a haptic device for simple rumble playback.
sdlHapticRumblePlay(Pointer<SdlHaptic> haptic, double strength, int length) int
Run a simple rumble effect on a haptic device.
sdlHapticRumbleStop(Pointer<SdlHaptic> haptic) int
Stop the simple rumble on a haptic device.
sdlHapticRumbleSupported(Pointer<SdlHaptic> haptic) int
Check whether rumble is supported on a haptic device.
sdlHapticRunEffect(Pointer<SdlHaptic> haptic, int effect, int iterations) int
Run the haptic effect on its associated haptic device.
sdlHapticSetAutocenter(Pointer<SdlHaptic> haptic, int autocenter) int
Set the global autocenter of the device.
sdlHapticSetGain(Pointer<SdlHaptic> haptic, int gain) int
Set the global gain of the specified haptic device.
sdlHapticStopAll(Pointer<SdlHaptic> haptic) int
Stop all the currently playing effects on a haptic device.
sdlHapticStopEffect(Pointer<SdlHaptic> haptic, int effect) int
Stop the haptic effect on its associated haptic device.
sdlHapticUnpause(Pointer<SdlHaptic> haptic) int
Unpause a haptic device.
sdlHapticUpdateEffect(Pointer<SdlHaptic> haptic, int effect, Pointer<SdlHapticEffect> data) int
Update the properties of an effect.
sdlJoystickIsHaptic(Pointer<SdlJoystick> joystick) int
Query if a joystick has haptic features.
sdlMouseIsHaptic() int
Query whether or not the current mouse has haptic capabilities.
sdlNumHaptics() int
Count the number of haptic devices attached to the system.