Module keycode

Module keycode 

Source
Expand description

Complete keycode definitions.

This module provides keycode definitions following the USB HID specification, extended with additional codes

Enums§

ConsumerKey
Keys in consumer page Ref: https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf#page=75
KeyCode
KeyCode is the internal representation of all keycodes, keyboard operations, etc. Use flat representation of keycodes.
SystemControlKey
Keys in Generic Desktop Page, generally used for system control Ref: https://www.usb.org/sites/default/files/documents/hut1_12v2.pdf#page=26

Functions§

from_ascii
Convert a ascii chat to keycode bool, if the keycode should be shifted assumes en-us keyboard mapping
to_ascii
Convert a ascii chat to keycode assumes en-us keyboard mapping