viewer->getEventQueue()->mouseButtonPress(0,0,1);

viewer->getEventQueue()->mouseMotion(10,0);

以上代码模拟了鼠标左键从窗口(0,0)拖拽到窗口坐标(10,0)

 

viewer->getEventQueue()->mouseScroll(osgGA::GUIEventAdapter::SCROLL_DOWN);

以上代码模拟了向上滚动滚轮

相关文章:

  • 2022-12-23
  • 2021-08-14
  • 2021-12-04
  • 2022-12-23
  • 2021-12-15
  • 2022-12-23
  • 2022-01-31
猜你喜欢
  • 2022-12-23
  • 2022-01-22
  • 2021-05-24
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案