Hiding the cursor in OS X and Windows desktop builds

Hiding the cursor in OS X and Windows desktop builds

Starting with Daily Build 2016.2813, you can now show and hide the mouse cursor in both OS X and Windows desktop builds. To hide the cursor, call:

To show it again, call the function again with true as the second parameter.

This completes the Optionally Hide OS Cursor in Desktop Builds feedback request. If you have questions or need help, please discuss further it in the forums.

 

Rob Miracle
rob@coronalabs.com

Rob Miracle creates mobile apps for his own enjoyment and the amusement of others. He serves the Corona Community in the forums, on the blog, and at local events.

2 Comments
  • bgmadclown
    Posted at 13:29h, 26 January

    Now that it’s completed, I’m looking forward to custom cursors!

  • Shultz
    Posted at 03:08h, 29 January

    It is really a useful tip for developers to adjust visibility of cursor in any given application. It can be usable in games where cursor exists in the screen and disrupts the player.