Files
sml-projects/message-types/input-msg.sml

18 lines
402 B
Standard ML
Raw Normal View History

signature INPUT_MESSAGE =
sig
datatype t =
MOUSE_MOVE of {x: Real32.real, y: Real32.real}
| MOUSE_LEFT_CLICK
| MOUSE_LEFT_RELEASE
| RESIZE_WINDOW of {width: int, height: int}
end
structure InputMessage :> INPUT_MESSAGE =
struct
datatype t =
MOUSE_MOVE of {x: Real32.real, y: Real32.real}
| MOUSE_LEFT_CLICK
| MOUSE_LEFT_RELEASE
| RESIZE_WINDOW of {width: int, height: int}
end