helm-0.2.0: A functionally reactive game engine.

Safe HaskellNone

FRP.Helm.Mouse

Contents

Description

Contains signals that sample input from the mouse.

Synopsis

Types

data Mouse Source

A data structure describing a button on a mouse.

Position

isDown :: Mouse -> SignalGen (Signal Bool)Source

The current state of a certain mouse button. True if the mouse is down, false otherwise.

Mouse State

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.