io:deregister-mouse-events

(deregister-mouse-events canvas)


Description:

Stops the current process from receiving mouse events from canvas


Arguments:

         canvas -- canvas to stop receiving mouse events from


Returns: boolean


Examples:

(register-mouse-events *canvas*)


(define (mouse-down x y)

   (if (point-in-path? *path* x y)

       (play-note (now) synth 74 80 1000)

       (play-note (now) synth 50 80 1000)))


(deregister-mouse-events *canvas*)



Back to index