Multiple keys
#1339
Replies: 2 comments 1 reply
-
As far as I know, This may not work for all platforms. Especially, Ctrl+A will generate a different key value under Windows. You may have to capture that special key value instead. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Try using ea.getUnmodifiedKey() rather than ea.getKey(). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello
i want to know how can i get multiple key, for example :
hold ctrl key and a pressed : ctrkl + a
do you think i'm in the good way ?
`bool KeyEventCamera::handle(const osgGA::GUIEventAdapter& ea, osgGA::GUIActionAdapter& aa)
{
#define PRINT(mask) osg::notify(osg::NOTICE)<<#mask<<" ="<<(ea.getModKeyMask() & mask)<<std::endl;
}
`
thanks in advance ^^
Beta Was this translation helpful? Give feedback.
All reactions