module Keyleds::Codes
Overview
Module containing utility functions for converting between Logitech internal scancodes and standard Linux kernel keycodes.
Defined in:
codes.crClass Method Summary
-
.to_keycode(block : BlockId, scancode : UInt8) : UInt32
Given a key scancode and the key block it resides in, returns the corresponding Linux keycode.
-
.to_scancode(keycode : UInt32) : LogitechScancode
Given a Linux input keycode, returns the Logitech key scancode and the key block it resides in.
Class Method Detail
Given a key scancode and the key block it resides in, returns the corresponding Linux keycode.
def self.to_scancode(keycode : UInt32) : LogitechScancode
#
Given a Linux input keycode, returns the Logitech key scancode and the key block it resides in.