kai.xia Posted December 30, 2014 Posted December 30, 2014 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!
unclebob Posted January 7, 2015 Posted January 7, 2015 Hello Xia, Just add these two defines at the top of your system script: #define MOUSE_USER #define MENU_USER
kai.xia Posted January 9, 2015 Author Posted January 9, 2015 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?
unclebob Posted January 11, 2015 Posted January 11, 2015 Try to call this: engine.controls.setMouseEnabled(1);
de-Roo.Lukas Posted May 31, 2018 Posted May 31, 2018 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
silent Posted May 31, 2018 Posted May 31, 2018 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: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
Recommended Posts