Render: showMouse

showMouse(show)
  • Shows/hides the mouse cursor in the game window.

show:

  • Type:  boolean
  • show mouse cursor: 1 or True
  • hide mouse cursor: 0 or False
    Sample Code

    ################  show/hide the mouse cursor

    # import bge module
    import bge

    # get the render module
    rend = bge.render

    # show the mouse cursor
    rend.showMouse(True)