package tsdl

  1. Overview
  2. Docs

Module Sdl.ControllerSource

Sourcetype bind_type
Sourceval bind_type_none : bind_type
Sourceval bind_type_button : bind_type
Sourceval bind_type_axis : bind_type
Sourceval bind_type_hat : bind_type
Sourcetype axis
Sourceval axis_invalid : axis
Sourceval axis_left_x : axis
Sourceval axis_left_y : axis
Sourceval axis_right_x : axis
Sourceval axis_right_y : axis
Sourceval axis_trigger_left : axis
Sourceval axis_trigger_right : axis
Sourceval axis_max : axis
Sourcetype button
Sourceval button_invalid : button
Sourceval button_a : button
Sourceval button_b : button
Sourceval button_x : button
Sourceval button_y : button
Sourceval button_back : button
Sourceval button_guide : button
Sourceval button_start : button
Sourceval button_left_stick : button
Sourceval button_right_stick : button
Sourceval button_left_shoulder : button
Sourceval button_right_shoulder : button
Sourceval button_dpad_up : button
Sourceval button_dpad_down : button
Sourceval button_dpad_left : button
Sourceval button_dpad_right : button
Sourceval button_max : button
Sourcetype button_bind

SDL_GameControllerButtonBind

Sourceval bind_type : button_bind -> bind_type

SDL_GameControllerButtonBind

Sourceval bind_button_value : button_bind -> int
Sourceval bind_axis_value : button_bind -> int
Sourceval bind_hat_value : button_bind -> int * int