/** * Set whether the mouse cursor should be visible or not. * * @param visible whether the mouse cursor should be visible or not. */ public void setCursorVisible(boolean visible) { if (mouseVisible != visible) { mouseVisible = visible; mouse.setCursorVisible(mouseVisible); } }