InitMouse()

Syntax

Result = InitMouse([LockMode])
Description
Initializes the Mouse environment for later use. You should call this function before any other functions in this library. If the result is null, no mouse is available.

Parameters

LockMode (optional) It can be one of the following value:
  #PB_Mouse_Locked:   the mouse will be used in exclusive mode, and the pointer hidden. Useful for games (default).
  #PB_Mouse_Unlocked: the mouse won't be locked, and the pointer will be still visible.

Return value

Nonzero if a mouse is available, zero otherwise.

Supported OS

All

<- ExamineMouse() - Mouse Index - MouseButton() ->