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