code function that indicates which area, if any, was clicked
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
structure InputCallbacks =
|
||||
struct
|
||||
open CML
|
||||
open Msg
|
||||
open InputMessage
|
||||
|
||||
fun mouseMoveCallback mailbox (x, y) =
|
||||
Mailbox.send (mailbox, (MOUSE_MOVE {x = x, y = y}))
|
||||
|
||||
@@ -4,7 +4,7 @@ struct
|
||||
|
||||
fun callbackListener mailbox =
|
||||
let
|
||||
open Msg
|
||||
open InputMessage
|
||||
val _ =
|
||||
case Mailbox.recv mailbox of
|
||||
MOUSE_MOVE {x, y} =>
|
||||
|
||||
Reference in New Issue
Block a user