Mouse: visible

visible
  • Shows/hides the mouse cursor in the game window.

Type:

  • boolean
  • show mouse cursor: 1 or True
     
  • hide mouse cursor: 0 or False
Note:
  • bge.logic.mouse.visible does not use the Mouse Sensor.
Sample Code

################## get a list of the active mouse events

# import bge
import bge

# get the mouse
my_mouse = bge.logic.mouse

# make the mouse cursor visible
my_mouse.visible = True