OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

viewer events synchronization


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
xdfanfan
Newbie


Joined: 26 Dec 2016
Posts: 4

PostPosted: Tue Dec 12, 2017 4:00 pm    Post subject:
viewer events synchronization
Reply with quote

Hi All,
I have used the osgViewer::CompositeViewer generating two viewers,and I have overrided the method handle()of osgGA::GUIEventHandler ,BUT finally just only the viewer where the cursor in is responded.
My question is how to make the two viewers events synchronization through just one keyboard click.


Thank you very much!


Judy
[url=http://dict.youdao.com/w/event%20synchronization/#keyfrom=E2Ctranslation][/url]

------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
mp3butcher (Julien Valentin)
Appreciator


Joined: 17 Feb 2010
Posts: 471
Location: France

PostPosted: Tue Dec 12, 2017 8:54 pm    Post subject:
Re: viewer events synchronization
Reply with quote

Hi

Eventqueues are per view so you can register your keyboard handler in both views (addeventhandler)...no?


xdfanfan wrote:
Hi All,
I have used the osgViewer::CompositeViewer generating two viewers,and I have overrided the method handle()of osgGA::GUIEventHandler ,BUT finally just only the viewer where the cursor in is responded.
My question is how to make the two viewers events synchronization through just one keyboard click.


Thank you very much!


Judy
[url=http://dict.youdao.com/w/event%20synchronization/#keyfrom=E2Ctranslation][/url]

------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Switch call to viewer::frame() betwee... DrPowers General 4 Tue Sep 11, 2018 6:48 am View latest post
No new posts Viewer not working bakalarvae Build system [build] 4 Sun May 27, 2018 8:20 pm View latest post
No new posts Shader Program stops working after Ch... ceranco General 0 Mon May 21, 2018 3:09 pm View latest post
No new posts CompositeViewer Bug with Scroll Events Daniel Emminizer, Code... General 1 Tue Apr 03, 2018 3:21 pm View latest post
No new posts osgoculus viewer picking mmaurus General 7 Wed Nov 08, 2017 2:44 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP