Zelkova Api Documentation

Version: 0.4.0

jamesmacaulay.zelkova.mouse

This namespace provides mouse-related signals.

clicks

A signal which is updated every time the mouse is clicked. The value of the signal is always the keyword :click.

clicks-channel

(clicks-channel graph opts)

down?

A signal of boolean values, true when the primary mouse button is depressed.

down?-channel

(down?-channel graph opts)

listen

(listen el type & args)

position

A signal of mouse positions as [x y] vectors. Initial value is [0 0].

position-channel

(position-channel graph opts)

x

A signal of mouse x-coordinates. Initial value is 0.

y

A signal of mouse y-coordinates. Initial value is 0.