This commit is contained in:
2024-07-28 14:22:17 +01:00
commit 319ba58b3e
17 changed files with 5124 additions and 0 deletions

11
ffi/glfw-key-input.sml Normal file
View File

@@ -0,0 +1,11 @@
structure Key =
struct
type window = MLton.Pointer.t
(* Export function to C. *)
val export =
_export "printFromMLton" public : (int * int * int * int -> unit) -> unit;
(* Import function to set callback for GLFW. *)
val setCallback = _import "setKeyCallback" public reentrant : window -> unit;
end