helm-1.0.0: A functionally reactive game engine.

Safe HaskellNone
LanguageHaskell2010

Helm.Window

Contents

Description

Contains signals that sample input from the game window.

Synopsis

Commands

size Source

Arguments

:: Engine e 
=> (V2 Int -> a)

The function to map the window size to an action.

-> Cmd e a

The mapped command.

Map the game window size to a game action.

Subscriptions

resizes Source

Arguments

:: Engine e 
=> (V2 Int -> a)

The function to map the changed window size to an action.

-> Sub e a

The mapped subscription.

Subscribe to the resize events from the game window and map to a game action.