module Keyleds::Strings

Overview

Module containing mapping hashes between various integer IDs and their human-readable names.

Defined in:

strings.cr

Constant Summary

BLOCK_ID_NAMES = begin hash = {} of UInt32 => String (0..).each do |i| entry = LibKeyleds.keyleds_block_id_names.to_unsafe[i] if (entry.id == 0) && entry.str.null? break end hash[entry.id] = String.new(entry.str) end hash end
DEVICE_TYPES = begin hash = {} of UInt32 => String (0..).each do |i| entry = LibKeyleds.keyleds_device_types.to_unsafe[i] if (entry.id == 0) && entry.str.null? break end hash[entry.id] = String.new(entry.str) end hash end
FEATURE_NAMES = begin hash = {} of UInt32 => String (0..).each do |i| entry = LibKeyleds.keyleds_feature_names.to_unsafe[i] if (entry.id == 0) && entry.str.null? break end hash[entry.id] = String.new(entry.str) end hash end
KEYCODE_NAMES = begin hash = {} of UInt32 => String (0..).each do |i| entry = LibKeyleds.keyleds_keycode_names.to_unsafe[i] if (entry.id == 0) && entry.str.null? break end hash[entry.id] = String.new(entry.str) end hash end
PROTOCOL_TYPES = begin hash = {} of UInt32 => String (0..).each do |i| entry = LibKeyleds.keyleds_protocol_types.to_unsafe[i] if (entry.id == 0) && entry.str.null? break end hash[entry.id] = String.new(entry.str) end hash end