eventloop-0.8.2.8: 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 # 
Instance details

Defined in Eventloop.Module.Websocket.Keyboard.Types

Show Keyboard Source # 
Instance details

Defined in Eventloop.Module.Websocket.Keyboard.Types

Generic Keyboard Source # 
Instance details

Defined in Eventloop.Module.Websocket.Keyboard.Types

Associated Types

type Rep Keyboard :: Type -> Type #

Methods

from :: Keyboard -> Rep Keyboard x #

to :: Rep Keyboard x -> Keyboard #

NFData Keyboard Source # 
Instance details

Defined in Eventloop.Module.Websocket.Keyboard.Types

Methods

rnf :: Keyboard -> () #

FromJSON Keyboard 
Instance details

Defined in Eventloop.Module.Websocket.Keyboard.Keyboard

Methods

parseJSON :: Value -> Parser Keyboard

parseJSONList :: Value -> Parser [Keyboard]

type Rep Keyboard Source # 
Instance details

Defined in Eventloop.Module.Websocket.Keyboard.Types

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