Page 1 of 1

How to prevent Noesis from setting the cursor?

Posted: 08 Apr 2022, 00:59
by kerbogames
I have a custom system for cursor management
how can I prevent Noesis from setting the cursor every frame?

Re: How to prevent Noesis from setting the cursor?

Posted: 08 Apr 2022, 12:56
by jsantos
Assuming you are using the C++ SDK, our core library never changes the cursor. The callback in IntegrationAPI.h is invoked instead
/// Callback invoked each time a view needs to update the mouse cursor icon
typedef void (*UpdateCursorCallback)(void* user, IView* view, Cursor* cursor);
NS_GUI_CORE_API void SetCursorCallback(void* user, UpdateCursorCallback callback);
Our Application Framework is implementing that callback, but nothing stops you from not doing that.