Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyboard virtual code of osgGA::GUIEventAdapter are different betwwen laptop and Desktop computer #1225

Open
dansirming opened this issue Apr 28, 2023 · 2 comments

Comments

@dansirming
Copy link

Today, I was debugging osgGA::AnimationPathManipulator on my laptop,
in AnimationPathManipulator::handle(const osgGA::GUIEventAdapter& ea,osgGA::GUIActionAdapter& us),when I Press the p key, the ea.getKey() return 229;but on Desktop computer,when I Press the p key, the ea.getKey()
return 112, 112 is correct,but 229 is incorrect!why this value is different ? is a bug? Can you tell me the reason?

notes:
**- I not press the capsLock or shift key 。

  • osg is 3.6.2**

2023-03-18_202624

@robertosfield
Copy link
Collaborator

The OSG doesn't do anything different on laptops vs desktop computers, the only difference is across different OS's, but they all should aim to map across to the same keycodes.

You don't mention anything about the OS on your different computers or the actual hardware. My guess is that you laptop hardware is doing something unusual..

The best I recommend is that you put break points in the OSG's event capture code to find out what the underlying OS specific Windowing library is passing to the OSG. This might give you a clue to the difference. Nobody has reported this issue and likely few have access to your specific combination of hardware and OS so you are the only one well placed to investigate the difference.

@dansirming
Copy link
Author

my laptop is windows 11, the desktop computer is window 10。I think what you're saying makes sense. I'll investigate again, thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants