module Keyleds::Codes

Overview

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

Defined in:

codes.cr

Class Method Summary

Class Method Detail

def self.to_keycode(block : BlockId, scancode : UInt8) : UInt32 #

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


[View source]
def self.to_scancode(keycode : UInt32) : LogitechScancode #

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


[View source]