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 

Escape Key


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
SMesserschmidt (Sebastian Messerschmidt)
Forum Moderator


Joined: 10 Sep 2013
Posts: 799

PostPosted: Wed Jul 19, 2017 9:10 am    Post subject:
Escape Key
Reply with quote

Hi,

I've just checked. My osg-3.4.0 based code uses

"
else if (osgGA::GUIEventAdapter::KEY_Escape == ea.getKey())
"

so it obviously works ..
The Eventhandler is the first however (since it is a console), so maybe
this might be worth a shot.

Cheers
Sebastian
Quote:
Hello,

I am using an event handler for catching keyboard's escape key.

However, my osgGA::GUIEventAdapter::getKey() returns 0x1B, when it
should be returning osgGA::GUIEventAdapter::KEY_Escape (which is 0xFF1B).

What's wrong here? the Osg's enum, or my code?






------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
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



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