add callbacks for mouse movement and mouse clicking

This commit is contained in:
2024-07-30 17:10:48 +01:00
parent 75b82fd888
commit e97768b18a
12 changed files with 102 additions and 49 deletions

View File

@@ -0,0 +1 @@
structure AppUpdate = struct end

15
functional-core/msg.sml Normal file
View File

@@ -0,0 +1,15 @@
signature MSG =
sig
datatype t =
MOUSE_MOVE of {x: int, y: int}
| MOUSE_LEFT_CLICK
| MOUSE_LEFT_RELEASE
end
structure Msg :> MSG =
struct
datatype t =
MOUSE_MOVE of {x: int, y: int}
| MOUSE_LEFT_CLICK
| MOUSE_LEFT_RELEASE
end