module

Keyleds::Codes

Module containing utility functions for converting between Logitech internal scancodes and standard Linux kernel keycodes.

Class methods

to_keycode(block : BlockId, scancode : UInt8) : UInt32

Given a key scancode and the key block it resides in, returns the corresponding Linux keycode.

Source
to_scancode(keycode : UInt32) : LogitechScancode

Given a Linux input keycode, returns the Logitech key scancode and the key block it resides in.

Source

Nested types