helm-0.2.0: A functionally reactive game engine.
FRP.Helm.Mouse
Contents
Description
Contains signals that sample input from the mouse.
Synopsis
data Mouse Source
A data structure describing a button on a mouse.
Constructors
isDown :: Mouse -> SignalGen (Signal Bool)Source
The current state of a certain mouse button. True if the mouse is down, false otherwise.
position :: SignalGen (Signal (Int, Int))Source
The current position of the mouse.
x :: SignalGen (Signal Int)Source
The current x-coordinate of the mouse.
y :: SignalGen (Signal Int)Source
The current y-coordinate of the mouse.