ScanCode

ceramic.ScanCode (Abstract)

Keyboard scan codes representing physical key positions.

Scan codes represent the physical position of keys on the keyboard, independent of the current keyboard layout or language settings. This is different from KeyCode which represents the character/symbol that would be generated by pressing the key.

For example, the physical key in the top-left letter position will always have the same scan code (KEY_Q on QWERTY), regardless of whether it produces 'Q', 'A' (on AZERTY), or another character.

Scan codes are useful for:

  • Game controls where physical key position matters
  • Keyboard shortcuts that should work across different layouts
  • Low-level keyboard handling

Based on USB HID Usage Tables specification.

Type Conversions

From:

  • [Int](/api-docs/clay-native/Int/)

To:

  • [Int](/api-docs/clay-native/Int/)

Metadata

Name Parameters
:enum -