Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
SDL.Input.GameController
Synopsis
- data ControllerButton
- = ControllerButtonInvalid
- | ControllerButtonA
- | ControllerButtonB
- | ControllerButtonX
- | ControllerButtonY
- | ControllerButtonBack
- | ControllerButtonGuide
- | ControllerButtonStart
- | ControllerButtonLeftStick
- | ControllerButtonRightStick
- | ControllerButtonLeftShoulder
- | ControllerButtonRightShoulder
- | ControllerButtonDpadUp
- | ControllerButtonDpadDown
- | ControllerButtonDpadLeft
- | ControllerButtonDpadRight
- data ControllerButtonState
- data ControllerDeviceConnection
Documentation
data ControllerButton Source #
Identifies a gamepad button.
Constructors
Instances
Eq ControllerButton Source # | |
Defined in SDL.Input.GameController Methods (==) :: ControllerButton -> ControllerButton -> Bool (/=) :: ControllerButton -> ControllerButton -> Bool | |
Data ControllerButton Source # | |
Defined in SDL.Input.GameController Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ControllerButton -> c ControllerButton gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ControllerButton toConstr :: ControllerButton -> Constr dataTypeOf :: ControllerButton -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ControllerButton) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ControllerButton) gmapT :: (forall b. Data b => b -> b) -> ControllerButton -> ControllerButton gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ControllerButton -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ControllerButton -> r gmapQ :: (forall d. Data d => d -> u) -> ControllerButton -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> ControllerButton -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> ControllerButton -> m ControllerButton gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ControllerButton -> m ControllerButton gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ControllerButton -> m ControllerButton | |
Ord ControllerButton Source # | |
Defined in SDL.Input.GameController Methods compare :: ControllerButton -> ControllerButton -> Ordering (<) :: ControllerButton -> ControllerButton -> Bool (<=) :: ControllerButton -> ControllerButton -> Bool (>) :: ControllerButton -> ControllerButton -> Bool (>=) :: ControllerButton -> ControllerButton -> Bool max :: ControllerButton -> ControllerButton -> ControllerButton min :: ControllerButton -> ControllerButton -> ControllerButton | |
Read ControllerButton Source # | |
Defined in SDL.Input.GameController Methods readsPrec :: Int -> ReadS ControllerButton readList :: ReadS [ControllerButton] readPrec :: ReadPrec ControllerButton readListPrec :: ReadPrec [ControllerButton] | |
Show ControllerButton Source # | |
Defined in SDL.Input.GameController Methods showsPrec :: Int -> ControllerButton -> ShowS show :: ControllerButton -> String showList :: [ControllerButton] -> ShowS | |
Generic ControllerButton Source # | |
Defined in SDL.Input.GameController Associated Types type Rep ControllerButton :: Type -> Type Methods from :: ControllerButton -> Rep ControllerButton x to :: Rep ControllerButton x -> ControllerButton | |
FromNumber ControllerButton Int32 Source # | |
Defined in SDL.Input.GameController Methods fromNumber :: Int32 -> ControllerButton Source # | |
type Rep ControllerButton Source # | |
Defined in SDL.Input.GameController type Rep ControllerButton = D1 ('MetaData "ControllerButton" "SDL.Input.GameController" "sdl2-2.5.2.0-6hjaY12qIyxIiDeeSUdpRn" 'False) ((((C1 ('MetaCons "ControllerButtonInvalid" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ControllerButtonA" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ControllerButtonB" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ControllerButtonX" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "ControllerButtonY" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ControllerButtonBack" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ControllerButtonGuide" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ControllerButtonStart" 'PrefixI 'False) (U1 :: Type -> Type)))) :+: (((C1 ('MetaCons "ControllerButtonLeftStick" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ControllerButtonRightStick" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ControllerButtonLeftShoulder" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ControllerButtonRightShoulder" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "ControllerButtonDpadUp" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ControllerButtonDpadDown" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ControllerButtonDpadLeft" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ControllerButtonDpadRight" 'PrefixI 'False) (U1 :: Type -> Type))))) |
data ControllerButtonState Source #
Identifies the state of a controller button.
Instances
data ControllerDeviceConnection Source #
Identified whether the game controller was added, removed, or remapped.