elm-lang/core/3.0.0

NOTE: this package moved to elm/core

NOTE: this package is not compatible with Elm 0.19.1

Mouse

Library for working with mouse input.

Position

position : Signal ( Int, Int )

The current mouse position.

x : Signal Int

The current x-coordinate of the mouse.

y : Signal Int

The current y-coordinate of the mouse.

Button Status

isDown : Signal Bool

The current state of the mouse True when any mouse button is down, and false otherwise.

clicks : Signal ()

Always equal to unit. Event triggers on every mouse click.