Sdl.Haptic
val infinity : uint32
val gain : feature
val autocenter : feature
val status : feature
val pause : feature
val polar : direction_type
val cartesian : direction_type
val spherical : direction_type
module Direction : sig ... end
val create_effect : unit -> haptic_effect
create_effect ()
is an uninitialized haptic effect
val get : haptic_effect -> 'a field -> 'a
get e f
gets the field f of e
.
val set : haptic_effect -> 'a field -> 'a -> unit
set e f v
sets the field f of e
to v
.
val typ : effect_type field
val constant : effect_type
val constant_type : effect_type field
val constant_direction : Direction.t field
val sine : effect_type
val left_right : effect_type
val triangle : effect_type
val sawtooth_up : effect_type
val sawtooth_down : effect_type
val periodic_type : effect_type field
val periodic_direction : Direction.t field
val spring : effect_type
val damper : effect_type
val inertia : effect_type
val friction : effect_type
val condition_type : effect_type field
val condition_direction : Direction.t field
val ramp : effect_type
val ramp_type : effect_type field
val ramp_direction : Direction.t field
For left_right
.
val left_right_type : effect_type field
val custom : effect_type
val custom_type : effect_type field
val custom_direction : Direction.t field