Houdini 20.5 Python scripting hou hou.qt

hou.qt.nativeModifierIndependentKeyCode HOM function

Interprets the native scan code and virtual key code from a Qt key event to return an integer value that is unaffected by held modifiers for the purposes of identifying a key. This can be used to maintain a dictionary of held keys.

nativeModifierIndependentKeyCode(event) integer or None

Returns None when this cannot be done.

hou.qt