package ocamlsdl2

  1. Overview
  2. Docs
type positions = Sdlhat.positions = {
  1. left : bool;
  2. right : bool;
  3. up : bool;
  4. down : bool;
}
val string_of_pos : positions -> string
type direction = Sdlhat.direction =
  1. | Centered
  2. | Up
  3. | Right
  4. | Down
  5. | Left
  6. | Right_Up
  7. | Right_Down
  8. | Left_Up
  9. | Left_Down
val string_of_dir : direction -> string
val dir_of_string : string -> direction
OCaml

Innovation. Community. Security.