tcod-haskell-0.1.0.0: Bindings to libtcod roguelike engine

Safe HaskellNone
LanguageHaskell2010

Game.TCOD.Mouse

Synopsis

Documentation

mouseShowCursor :: Bool -> IO () Source #

Display and hide the mouse cursor

By default, the mouse cursor in visible in windowed mode, hidden in fullscreen mode.

mouseGetStatus :: IO TCODMouse Source #

Get the last known mouse cursor position

This function is only valid, and only returns updated values, after you have called event-related functions. Whether to check for events, or wait for events. It does not provide the actual mouse position at the time the call is made.

mouseIsCursorVisible :: IO Bool Source #

Getting the cursor status

mouseMove Source #

Arguments

:: Int

x

-> Int

y

-> IO () 

Setting the mouse cursor's position

You can set the cursor position (in pixel coordinates, where [0,0] is the window's top left corner)

mouseIncludesTouch :: Bool -> IO () Source #

Count touches as clicks