Jump to content

USER_MOUSE macro is not working if world is not loaded.


photo

Recommended Posts

Hi guys,

 

I came across really strange problem where "USER_MOUSE" macro is not working as per expectation.

 

We are using custom hardware cursor which is handled by our window independent of unigine and is working fine only if world script is loaded. ( I mean .world file. ).

 

If world file is not loaded then I get the black mouse cursor must be software cursor ( bcoz I took screen shot of that cursor using (Print Screen Key (PrtScn)), while we can't take screen shot of hardware cursor using the same technique. :) )

 

BTW, while world is not loaded we have just bunch of UI elements on screen. ( Imagine Title Screen of game. )

 

I don't what should I do to get rid of that default black cursor.

 

Sample code: where I put macro in unigine.cc which is our custom system_script.

#define MOUSE_USER
#include <core/unigine.h>
#include <core/scripts/system.h>
#include <core/scripts/utils.h>

 

:rolleyes:

 

rakeshj.

Link to comment
×
×
  • Create New...