Event.getScancode

Gets the keyboard low-level scancode of a key event.

This is usually hardware_keycode. On Windows this is the high word of WM_KEY{DOWN,UP} lParam which contains the scancode and some extended flags.

class Event
int
getScancode
()

Return Value

Type: int

The associated keyboard scancode or 0

Meta

Since

3.22