QPanda3D icon indicating copy to clipboard operation
QPanda3D copied to clipboard

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

Open Ywatcher opened this issue 1 year ago • 0 comments

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

Ywatcher avatar Sep 25 '24 04:09 Ywatcher