Hello Guest

How to disable/hide mouse pointer

  • 16 Replies
  • 39656 Views
Re: How to disable/hide mouse pointer
« Reply #15 on: December 28, 2011, 23:33:08 »
Code: [Select]
emptyCursor = new Cursor(1, 1, 0, 0, 1, BufferUtils.createIntBuffer(1), null);
Mouse.setNativeCursor(emptyCursor);
Well, that works. Thanks!

Any idea how to undo that ? I tried Mouse.getNativeCursor(); to retrieve the default cursor before hiding the cursor but it doesn't work. Seems to deal only with custom cursors.

I need to change the cursor visibility between menu and game (pretty often).

*

Offline princec

  • *****
  • 1933
    • Puppygames
Re: How to disable/hide mouse pointer
« Reply #16 on: December 29, 2011, 09:54:13 »
Set it to null.

Cas :)