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 

Examples of using CTRL+Arrow keys?


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
Rowley, Marlin R
Guest





PostPosted: Thu Apr 05, 2018 3:04 pm    Post subject:
Examples of using CTRL+Arrow keys?
Reply with quote

Hi,

I’m trying to write code that will read the CTRL+Arrow key to do an action. I’ve looked at the keyboard example but it doesn’t fit what I have currently:

switch (ea.getEventType())
{
case osgGA::GUIEventAdapter::KEYDOWN:
{
switch (ea.getKey())
{


Any help would be appreciated,

Thanks,

-M
----------------------------------------
Marlin Rowley
Software Engineer, Staff

Missiles and Fire Control
972-603-1931 (office)
214-926-0622 (mobile)
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)

------------------
Post generated by Mail2Forum
Back to top
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11829

PostPosted: Thu Apr 05, 2018 3:09 pm    Post subject:
Examples of using CTRL+Arrow keys?
Reply with quote

Hi Marlin,


The osgGA::GUIEventAdapter has a getModKeyMask() that tells you about which of the key modifiers are pressed, and getKey() or getUnmodifiedKey() tells you the key. 


Robert


On 5 April 2018 at 15:59, Rowley, Marlin R < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:
Quote:

Hi,
 
I’m trying to write code that will read the CTRL+Arrow key to do an action.  I’ve looked at the keyboard example but it doesn’t fit what I have currently:
 
switch (ea.getEventType())
      {
      case osgGA::GUIEventAdapter::KEYDOWN:
           {
                 switch (ea.getKey())
                 {
 
 
Any help would be appreciated,
 
Thanks,
 
-M
----------------------------------------
Marlin Rowley
Software Engineer, Staff

Missiles and Fire Control
972-603-1931 (office)
214-926-0622 (mobile)
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
 


_______________________________________________
osg-users mailing list
(
Only registered users can see emails on this board!
Get registred or enter the forums!
)
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



------------------
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

Similar Topics
Topic Author Forum Replies Posted
No new posts Cross-platform examples for Linux, ma... kornerr Announcement [ANN] 3 Mon Apr 09, 2018 9:36 am View latest post
No new posts EXTERNAL: Re: Examples of using CTRL... Rowley, Marlin R General 0 Thu Apr 05, 2018 3:38 pm View latest post
No new posts Feature testing and examples in separ... mp3butcher General 2 Sun Feb 04, 2018 6:29 pm View latest post
No new posts XML serialisation issues / examples hartwigw General 2 Mon Jan 15, 2018 11:54 pm View latest post
No new posts Examples Not Responding; Windows 10 x64 S Senften General 0 Tue Feb 07, 2017 8:37 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