SDL.Haptic – sdl2 Reference Manual
Haptic
Object Hierarchy:
SDL.Haptic
SDL.Haptic
SDL.Haptic
Description:
[
CCode
( cname =
"SDL_Haptic"
, destroy_function =
"SDL_HapticClose"
) ]
[
Compact
]
public
class
Haptic
Namespace:
SDL
Package:
sdl2
Content:
Structs:
HapticCondition
HapticConstant
HapticCustom
HapticDirection
HapticEffect
HapticLeftRight
HapticPeriodic
HapticRamp
Enums:
DirectionType
EffectType
Static methods:
public
static
unowned
string
device_name
(
int
device_index)
public
static
bool
is_open
(
int
device_index)
public
static
int
num_devices
()
Creation methods:
public
Haptic
(
int
device_index)
public
Haptic.from_joystick
(
Joystick
joystick)
public
Haptic.from_mouse
()
Methods:
public
int
destroy_effect
(
int
effect_id)
public
int
effects_capacity
()
public
int
effects_playing
()
public
int
get_effect_status
(
int
effect_id)
public
int
get_index
()
public
int
num_axes
()
public
int
pause
()
public
uint
query
()
public
int
resume
()
public
int
rumble_init
()
public
int
rumble_play
(
float
strength,
uint32
length)
public
int
rumble_stop
()
public
int
rumble_supported
()
public
int
run_effect
(
int
effect_id,
uint32
iterations)
public
int
set_autocenter
(
int
percentage)
public
int
set_gain
(
int
gain)
public
int
stop
()
public
int
stop_effect
(
int
effect_id)
public
int
supports_effect
(
HapticEffect
? effect)
public
int
update_effect
(
int
effect_id,
out
HapticEffect
new_effect)
public
int
upload_effect
(
HapticEffect
? effect)
2022 vala-language.org