nyx-game-1.0.1.0: A bullet-hell game made with SDL2.

Safe HaskellNone
LanguageHaskell2010

Play.Engine.Input

Documentation

data Input Source #

Constructors

Input 

Fields

data Action Source #

Constructors

Idle 
Release 
Hold 
Click 
Instances
Eq Action Source # 
Instance details

Defined in Play.Engine.Input

Methods

(==) :: Action -> Action -> Bool #

(/=) :: Action -> Action -> Bool #

Ord Action Source # 
Instance details

Defined in Play.Engine.Input

Show Action Source # 
Instance details

Defined in Play.Engine.Input

Generic Action Source # 
Instance details

Defined in Play.Engine.Input

Associated Types

type Rep Action :: Type -> Type #

Methods

from :: Action -> Rep Action x #

to :: Rep Action x -> Action #

NFData Action Source # 
Instance details

Defined in Play.Engine.Input

Methods

rnf :: Action -> () #

type Rep Action Source # 
Instance details

Defined in Play.Engine.Input

type Rep Action = D1 (MetaData "Action" "Play.Engine.Input" "nyx-game-1.0.1.0-65f7QsdyqHT920fysiMrdp" False) ((C1 (MetaCons "Idle" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Release" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "Hold" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Click" PrefixI False) (U1 :: Type -> Type)))

data Key Source #

Instances
Bounded Key Source # 
Instance details

Defined in Play.Engine.Input

Methods

minBound :: Key #

maxBound :: Key #

Enum Key Source # 
Instance details

Defined in Play.Engine.Input

Methods

succ :: Key -> Key #

pred :: Key -> Key #

toEnum :: Int -> Key #

fromEnum :: Key -> Int #

enumFrom :: Key -> [Key] #

enumFromThen :: Key -> Key -> [Key] #

enumFromTo :: Key -> Key -> [Key] #

enumFromThenTo :: Key -> Key -> Key -> [Key] #

Eq Key Source # 
Instance details

Defined in Play.Engine.Input

Methods

(==) :: Key -> Key -> Bool #

(/=) :: Key -> Key -> Bool #

Ord Key Source # 
Instance details

Defined in Play.Engine.Input

Methods

compare :: Key -> Key -> Ordering #

(<) :: Key -> Key -> Bool #

(<=) :: Key -> Key -> Bool #

(>) :: Key -> Key -> Bool #

(>=) :: Key -> Key -> Bool #

max :: Key -> Key -> Key #

min :: Key -> Key -> Key #

Read Key Source # 
Instance details

Defined in Play.Engine.Input

Show Key Source # 
Instance details

Defined in Play.Engine.Input

Methods

showsPrec :: Int -> Key -> ShowS #

show :: Key -> String #

showList :: [Key] -> ShowS #

Generic Key Source # 
Instance details

Defined in Play.Engine.Input

Associated Types

type Rep Key :: Type -> Type #

Methods

from :: Key -> Rep Key x #

to :: Rep Key x -> Key #

NFData Key Source # 
Instance details

Defined in Play.Engine.Input

Methods

rnf :: Key -> () #

type Rep Key Source # 
Instance details

Defined in Play.Engine.Input

type Rep Key = D1 (MetaData "Key" "Play.Engine.Input" "nyx-game-1.0.1.0-65f7QsdyqHT920fysiMrdp" False) (((C1 (MetaCons "KeyUp" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "KeyDown" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "KeyLeft" PrefixI False) (U1 :: Type -> Type))) :+: (C1 (MetaCons "KeyRight" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "KeyA" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "KeyB" PrefixI False) (U1 :: Type -> Type)))) :+: ((C1 (MetaCons "KeyC" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "KeyD" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "KeyM" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "KeyP" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "KeyScale" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "KeyStart" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "KeyQuit" PrefixI False) (U1 :: Type -> Type)))))