Jump to content

Search the Community

Showing results for tags 'MouseApp Class'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to UNIGINE Forums
    • News & Announcements
    • Getting started
  • Development
    • Content Creation
    • World Design
    • Rendering
    • Animation
    • Physics, Navigation and Path Finding
    • UI Systems
    • Sound & Video
    • Editor
    • C++ Programming
    • C# Programming
    • Networking
    • Sim IG (Image Generator)
    • VR Discussions
    • General
  • Improving UNIGINE
    • Documentation
    • Feedback for UNIGINE team
    • Bug Reports
    • Unigine SDK Beta feedback
  • Community
    • Add-on Store (https://store.unigine.com/)
    • Showcase
    • Collaboration
    • Tools, Plugins, Materials & Tutorials
    • General Discussions
  • Legacy
    • UnigineScript

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Found 1 result

  1. I use the C++ API and create the environment by default like the follows: AppSystemLogic system_logic; AppWorldLogic world_logic; AppEditorLogic editor_logic; Unigine::EnginePtr engine(UNIGINE_VERSION, argc, argv); engine->main(&system_logic, &world_logic, &editor_logic); but when I run this application, I found that when I click the scene, the mouse disappeared, and when I print the mouse positions, I always get a same value no matter how I shake the mouse. The source code and the out put are as follows: int AppWorldLogic::update() { Unigine::Log::message("%d, %d \n", Unigine::App::get()->getMouseX(), Unigine::App::get()->getMouseY()); return 1; } Output: 853, 8 853, 8 853, 8 853, 8 853, 8 851, 9 851, 9 851, 9 851, 9 851, 9 clicked! 800, 450 800, 450 800, 450 800, 450 800, 450 800, 450 800, 450 800, 450 800, 450 800, 450 ... What surprised me is that no matter where I click the mouse, the output always 800, 450 when the cursor has disappeared. Waiting for your response, thanks!
×
×
  • Create New...