eventloop-0.8.2.2: A different take on an IO system. Based on Amanda's IO loop, this eventloop takes a function that maps input events to output events. It can easily be extended by modules that represent IO devices or join multiple modules together.

Safe HaskellNone
LanguageHaskell2010

Eventloop.Module.Websocket.Keyboard

Synopsis

Documentation

data Keyboard Source #

Almost all key presses are registered including modifier keys. Expect character keys to come in as their character. Press a c, get a "c". If a modifier is used and a different character is expected, it will be that instead. Press shift + c, get a C. Modifiers are also sent as their string representation: "shift", "ctrl" or "alt". Space is expected as "space".

Constructors

Key [Char] 

Instances

Eq Keyboard Source # 
Show Keyboard Source # 
Generic Keyboard Source # 

Associated Types

type Rep Keyboard :: * -> * #

Methods

from :: Keyboard -> Rep Keyboard x #

to :: Rep Keyboard x -> Keyboard #

NFData Keyboard Source # 

Methods

rnf :: Keyboard -> () #

type Rep Keyboard Source # 
type Rep Keyboard = D1 (MetaData "Keyboard" "Eventloop.Module.Websocket.Keyboard.Types" "eventloop-0.8.2.2-F2V5swFLstPEfTB4BPkr2w" False) (C1 (MetaCons "Key" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Char])))