jadav.rakesh Posted November 2, 2011 Share Posted November 2, 2011 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
carl.sutton Posted November 2, 2011 Share Posted November 2, 2011 engine.gui.setMouseCursor(GUI_CURSOR_NONE) hides the default black mouse cursor Link to comment
jadav.rakesh Posted November 7, 2011 Author Share Posted November 7, 2011 Hi Carl, Thanks for help. Now everything is working fine. :) rakeshj. Link to comment
Recommended Posts