> For the complete documentation index, see [llms.txt](https://docs.greenhellmodding.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.greenhellmodding.com/client-code-examples/toggling-the-mouse-cursor.md).

# Toggling the mouse/cursor

In order to toggle the mouse/cursor we use the `CursorManager` , You have to only call the `.ShowCursor()` method once! As its "Requesting" the cursor.

If you request it too many times you will have to hide it the same amount of time! So only call this when opening your menu and when closing it, don't call it each frame while your menu is open.

```csharp
// Show the cursor :
CursorManager.Get().SetCursor(CursorManager.TYPE.Normal);
CursorManager.Get().ShowCursor(true, true);

// Hide the cursor :
CursorManager.Get().ShowCursor(false,false);
```

{% hint style="warning" %}
Known issue : We don't know yet how to properly disable all actions such as opening the inventory, opening the character wheel etc. So it can be a little bit messy when using input fields inside menus.\
**If you want to contribute to the modding research, join us on our** [**discord**](https://www.greenhellmodding.com/discord)**.**
{% endhint %}
