Copyright | (c) Fumiaki Kinoshita 2014 |
---|---|
License | BSD3 |
Maintainer | Fumiaki Kinoshita <fumiexcel@gmail.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
- data System s a
- runSystem :: WindowMode -> Box V2 Float -> (forall s. System s a) -> IO (Maybe a)
- forkSystem :: System s () -> System s ThreadId
- stand :: System s ()
- wait :: Time -> System s ()
- getTime :: System s Time
- setFPS :: Float -> System s ()
- keyPress :: Key -> System s Bool
- mousePosition :: System s (V2 Float)
- mouseButton :: Int -> System s Bool
- enableCursor :: System s ()
- hideCursor :: System s ()
- disableCursor :: System s ()
- getGamepads :: System s [Gamepad]
- gamepadButtons :: Gamepad -> System s [Bool]
- gamepadAxes :: Gamepad -> System s [Float]
- linkGraphic :: (Time -> System s Sight) -> System s ()
- linkPicture :: (Time -> System s Picture) -> System s ()
- linkAudio :: (Time -> Int -> System s (Vector Stereo)) -> System s ()
- linkKeyboard :: (Chatter Key -> System s ()) -> System s ()
- linkMouse :: (MouseEvent -> System s ()) -> System s ()
- linkGamepad :: (GamepadEvent -> System s ()) -> System s ()
- setTitle :: String -> System s ()
- clearColor :: RGBA -> System s ()
- getBoundingBox :: System s (Box V2 Float)
- setBoundingBox :: Box V2 Float -> System s ()
- takeScreenshot :: System s Bitmap
The system
forkSystem :: System s () -> System s ThreadId Source
Time
Raw input
mousePosition :: System s (V2 Float) Source
mouseButton :: Int -> System s Bool Source
enableCursor :: System s () Source
hideCursor :: System s () Source
disableCursor :: System s () Source
getGamepads :: System s [Gamepad] Source
gamepadButtons :: Gamepad -> System s [Bool] Source
gamepadAxes :: Gamepad -> System s [Float] Source
Component
linkMouse :: (MouseEvent -> System s ()) -> System s () Source
linkGamepad :: (GamepadEvent -> System s ()) -> System s () Source
Others
clearColor :: RGBA -> System s () Source
takeScreenshot :: System s Bitmap Source