Packages
sdl2
SDL
Haptic
DirectionType
EffectType
HapticCondition
HapticConstant
HapticCustom
HapticDirection
HapticEffect
HapticLeftRight
HapticPeriodic
HapticRamp
device_name
is_open
num_devices
Haptic
Haptic.from_joystick
Haptic.from_mouse
destroy_effect
effects_capacity
effects_playing
get_effect_status
get_index
num_axes
pause
query
resume
rumble_init
rumble_play
rumble_stop
rumble_supported
run_effect
set_autocenter
set_gain
stop
stop_effect
supports_effect
update_effect
upload_effect
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)