helm-0.7.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.

Instances

Enum Mouse 
Eq Mouse 
Ord Mouse 
Read Mouse 
Show Mouse 

Position

position :: Signal (Int, Int)Source

The current position of the mouse.

x :: Signal IntSource

The current x-coordinate of the mouse.

y :: Signal IntSource

The current y-coordinate of the mouse.

Mouse State

isDown :: Signal BoolSource

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

isDownButton :: Mouse -> Signal BoolSource

The current state of a given mouse button. True if down, false otherwise.

clicks :: Signal ()Source

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