How can I translate Linux keycodes from /dev/input/event* to ASCII in Perl?
- by Bogdan Constantinescu
I'm writing a Perl script that reads data from the infamous /dev/input/event* and I didn't find a way to translate the key codes generated by the kernel into ASCII.
I'm talking about the linux key codes in this table here and I can't seem to find something that would help me translate them without hardcoding an array into the script. Am I missing something?
I'd like to skip the array part because it doesn't seem to be a good practice, so any idea? :)