jacdac.hid_keyboard

Submodules

Package Contents

Classes

HidKeyboardClient

Control a HID keyboard.

class jacdac.hid_keyboard.HidKeyboardClient(bus: jacdac.bus.Bus, role: str)

Bases: jacdac.bus.Client

Control a HID keyboard.
  • The codes for the key (selectors) is defined in the [HID Keyboard

  • specification](https://usb.org/sites/default/files/hut1_21.pdf), chapter 10 Keyboard/Keypad Page, page 81.

  • Modifiers are in page 87.

  • The device keeps tracks of the key state and is able to clear it all with the clear command.

Implements a client for the HID Keyboard service.

clear() None

Clears all pressed keys.