Module Tsdl.Sdl.Haptic

module Haptic: sig .. end

val infinity : Tsdl.Sdl.uint32

Features


type feature = int 
val gain : feature
val autocenter : feature
val status : feature
val pause : feature

Directions


type direction_type = int 
val polar : direction_type
val cartesian : direction_type
val spherical : direction_type
module Direction: sig .. end

Effects


type effect_type = int 
type 'a field 
The type for effect fields.
val create_effect : unit -> Tsdl.Sdl.haptic_effect
create_effect () is an uninitialized haptic effect
val get : Tsdl.Sdl.haptic_effect -> 'a field -> 'a
get e f gets the field f of e.
val set : Tsdl.Sdl.haptic_effect -> 'a field -> 'a -> unit
set e f v sets the field f of e to v.
val typ : effect_type field

Constant effect


val constant : effect_type

SDL_HapticConstant fields


val constant_type : effect_type field
val constant_direction : Direction.t field
val constant_length : Tsdl.Sdl.uint32 field
val constant_delay : Tsdl.Sdl.uint16 field
val constant_button : Tsdl.Sdl.uint16 field
val constant_interval : Tsdl.Sdl.uint16 field
val constant_level : Tsdl.Sdl.int16 field
val constant_attack_length : Tsdl.Sdl.uint16 field
val constant_attack_level : Tsdl.Sdl.uint16 field
val constant_fade_length : Tsdl.Sdl.uint16 field
val constant_fade_level : Tsdl.Sdl.uint16 field

Periodic effect


val sine : effect_type
val left_right : effect_type
val triangle : effect_type
val sawtooth_up : effect_type
val sawtooth_down : effect_type

SDL_HapticPeriodic fields


val periodic_type : effect_type field
val periodic_direction : Direction.t field
val periodic_length : Tsdl.Sdl.uint32 field
val periodic_delay : Tsdl.Sdl.uint16 field
val periodic_button : Tsdl.Sdl.uint16 field
val periodic_interval : Tsdl.Sdl.uint16 field
val periodic_period : Tsdl.Sdl.uint16 field
val periodic_magnitude : Tsdl.Sdl.int16 field
val periodic_offset : Tsdl.Sdl.int16 field
val periodic_phase : Tsdl.Sdl.uint16 field
val periodic_attack_length : Tsdl.Sdl.uint16 field
val periodic_attack_level : Tsdl.Sdl.uint16 field
val periodic_fade_length : Tsdl.Sdl.uint16 field
val periodic_fade_level : Tsdl.Sdl.uint16 field

Condition effect


val spring : effect_type
val damper : effect_type
val inertia : effect_type
val friction : effect_type

SDL_HapticCondition fields


val condition_type : effect_type field
val condition_direction : Direction.t field
val condition_length : Tsdl.Sdl.uint32 field
val condition_delay : Tsdl.Sdl.uint16 field
val condition_button : Tsdl.Sdl.uint16 field
val condition_interval : Tsdl.Sdl.uint16 field
val condition_right_sat_0 : Tsdl.Sdl.uint16 field
val condition_right_sat_1 : Tsdl.Sdl.uint16 field
val condition_right_sat_2 : Tsdl.Sdl.uint16 field
val condition_left_sat_0 : Tsdl.Sdl.uint16 field
val condition_left_sat_1 : Tsdl.Sdl.uint16 field
val condition_left_sat_2 : Tsdl.Sdl.uint16 field
val condition_right_coeff_0 : Tsdl.Sdl.int16 field
val condition_right_coeff_1 : Tsdl.Sdl.int16 field
val condition_right_coeff_2 : Tsdl.Sdl.int16 field
val condition_left_coeff_0 : Tsdl.Sdl.int16 field
val condition_left_coeff_1 : Tsdl.Sdl.int16 field
val condition_left_coeff_2 : Tsdl.Sdl.int16 field
val condition_deadband_0 : Tsdl.Sdl.uint16 field
val condition_deadband_1 : Tsdl.Sdl.uint16 field
val condition_deadband_2 : Tsdl.Sdl.uint16 field
val condition_center_0 : Tsdl.Sdl.int16 field
val condition_center_1 : Tsdl.Sdl.int16 field
val condition_center_2 : Tsdl.Sdl.int16 field

Ramp effect


val ramp : effect_type

SDL_HapticRamp fields


val ramp_type : effect_type field
val ramp_direction : Direction.t field
val ramp_length : Tsdl.Sdl.uint32 field
val ramp_delay : Tsdl.Sdl.uint16 field
val ramp_button : Tsdl.Sdl.uint16 field
val ramp_interval : Tsdl.Sdl.uint16 field
val ramp_start : Tsdl.Sdl.int16 field
val ramp_end : Tsdl.Sdl.int16 field
val ramp_attack_length : Tsdl.Sdl.uint16 field
val ramp_attack_level : Tsdl.Sdl.uint16 field
val ramp_fade_length : Tsdl.Sdl.uint16 field
val ramp_fade_level : Tsdl.Sdl.uint16 field

Left right effect

For Tsdl.Sdl.Haptic.left_right.

SDL_HapticLeftRight fields


val left_right_type : effect_type field
val left_right_length : Tsdl.Sdl.uint32 field
val left_right_large_magnitude : Tsdl.Sdl.uint16 field
val left_right_small_magnitude : Tsdl.Sdl.uint16 field

Custom effect


val custom : effect_type

SDL_HapticCustom fields


val custom_type : effect_type field
val custom_direction : Direction.t field
val custom_length : Tsdl.Sdl.uint32 field
val custom_delay : Tsdl.Sdl.uint16 field
val custom_button : Tsdl.Sdl.uint16 field
val custom_interval : Tsdl.Sdl.uint16 field
val custom_channels : Tsdl.Sdl.uint8 field
val custom_period : Tsdl.Sdl.uint16 field
val custom_samples : Tsdl.Sdl.uint16 field
val custom_data : Tsdl.Sdl.uint16 list field
Note. Only Tsdl.Sdl.Haptic.setable.
val custom_attack_length : Tsdl.Sdl.uint16 field
val custom_attack_level : Tsdl.Sdl.uint16 field
val custom_fade_length : Tsdl.Sdl.uint16 field
val custom_fade_level : Tsdl.Sdl.uint16 field