code function that indicates which area, if any, was clicked
This commit is contained in:
15
message-types/input-msg.sml
Normal file
15
message-types/input-msg.sml
Normal file
@@ -0,0 +1,15 @@
|
||||
signature INPUT_MESSAGE =
|
||||
sig
|
||||
datatype t =
|
||||
MOUSE_MOVE of {x: int, y: int}
|
||||
| MOUSE_LEFT_CLICK
|
||||
| MOUSE_LEFT_RELEASE
|
||||
end
|
||||
|
||||
structure InputMessage :> INPUT_MESSAGE =
|
||||
struct
|
||||
datatype t =
|
||||
MOUSE_MOVE of {x: int, y: int}
|
||||
| MOUSE_LEFT_CLICK
|
||||
| MOUSE_LEFT_RELEASE
|
||||
end
|
||||
Reference in New Issue
Block a user