Jump to content

[SOLVED] How to disable the cursor hidden and option dialog


photo

Recommended Posts

Posted

Hi,

 

I found the mouse cursor will disappeared when I pressed left button in the game window, and the option dialog (video, render, interface...) when press Esc key. Can these two features be disabled in the app?

 

thanks!

Posted

Hello Xia,

 

Just add these two defines at the top of your system script:

#define MOUSE_USER
#define MENU_USER

Posted

It worked, thanks.

 

But I found another problem, if the mouse is not hidden, the playerSpectator could not be controled by mouse input, is it a normal feature in engine?

Posted

Try to call this:

engine.controls.setMouseEnabled(1);
  • 3 years later...
Posted
On 1/7/2015 at 5:43 PM, unclebob said:

 

Just add these two defines at the top of your system script:


#define MOUSE_USER
#define MENU_USER
 

 What do you mean by system script?  AppSystemLogic?  I want to know the specific file.

Thanks

Posted

It's usually located inside data folder inside your project and named unigine.cpp.

You can also pass that defines via command line start-up options -extern_define MOUSE_USER,MENU_USER.

How to submit a good bug report
---
FTP server for test scenes and user uploads:

×
×
  • Create New...