add callbacks for mouse movement and mouse clicking
This commit is contained in:
1
functional-core/app-update.sml
Normal file
1
functional-core/app-update.sml
Normal file
@@ -0,0 +1 @@
|
||||
structure AppUpdate = struct end
|
||||
15
functional-core/msg.sml
Normal file
15
functional-core/msg.sml
Normal 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
|
||||
Reference in New Issue
Block a user