kerbogames
Topic Author
Posts: 2
Joined: 16 Mar 2022, 09:38

How to prevent Noesis from setting the cursor?

08 Apr 2022, 00:59

I have a custom system for cursor management
how can I prevent Noesis from setting the cursor every frame?
 
User avatar
jsantos
Site Admin
Posts: 3935
Joined: 20 Jan 2012, 17:18
Contact:

Re: How to prevent Noesis from setting the cursor?

08 Apr 2022, 12:56

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.

Who is online

Users browsing this forum: Ahrefs [Bot], Semrush [Bot] and 1 guest