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 

EXTERNAL: Re: 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:38 pm    Post subject:
EXTERNAL: Re: Examples of using CTRL+Arrow keys?
Reply with quote

So where exactly would that go in this order of code? As an extra case for the ea.getEventType()?

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

From: osg-users [mailto:] On Behalf Of Robert Osfield
Sent: Thursday, April 5, 2018 10:05 AM
To: OpenSceneGraph Users <>
Subject: EXTERNAL: Re: Examples of using CTRL+Arrow keys?

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
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 EXTERNAL: Re: EXTERNAL: Re: EXTERNAL:... Rowley, Marlin R General 0 Thu Apr 19, 2018 10:16 pm View latest post
No new posts EXTERNAL: Re: EXTERNAL: Re: EXTERNAL:... Rowley, Marlin R General 0 Thu Apr 19, 2018 8:54 pm View latest post
No new posts EXTERNAL: Re: EXTERNAL: Re: Help on m... Rowley, Marlin R General 2 Thu Apr 19, 2018 8:25 pm View latest post
No new posts EXTERNAL: Re: Help on multitexturing.. Rowley, Marlin R General 1 Thu Apr 19, 2018 7:30 pm View latest post
No new posts EXTERNAL: Re: Array of structs Rowley, Marlin R General 0 Wed Apr 18, 2018 2:41 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