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

Use scan code for key translation to distinguishi left and right on keyboard #20

Open
Ywatcher opened this issue Sep 25, 2024 · 0 comments

Comments

@Ywatcher
Copy link
Contributor

Currently QPanda3D_Key_translation uses type PyQt5.QtCore.Qt.Key as dictionary key values. However, left and right shift etc. cannot be distinguished in this way since these keys are mapped to same name by Qt.
Is it a good idea to use integer scan codes instead in the dictionary, so that lshift and rshift can send different messages?

some related discussions are here:
https://forum.qt.io/topic/36639/read-keyboard-input-that-can-differ-between-left-shift-and-right-shift-key
https://stackoverflow.com/questions/44813630/detecting-the-right-shift-key-in-qt

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

1 participant