reduce number of type conversoins required for mouse move callback (and fix the other code which uses it too)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
signature INPUT_MESSAGE =
|
||||
sig
|
||||
datatype t =
|
||||
MOUSE_MOVE of {x: int, y: int}
|
||||
MOUSE_MOVE of {x: Real32.real, y: Real32.real}
|
||||
| MOUSE_LEFT_CLICK
|
||||
| MOUSE_LEFT_RELEASE
|
||||
end
|
||||
@@ -9,7 +9,7 @@ end
|
||||
structure InputMessage :> INPUT_MESSAGE =
|
||||
struct
|
||||
datatype t =
|
||||
MOUSE_MOVE of {x: int, y: int}
|
||||
MOUSE_MOVE of {x: Real32.real, y: Real32.real}
|
||||
| MOUSE_LEFT_CLICK
|
||||
| MOUSE_LEFT_RELEASE
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user