How can I translate Linux keycodes from /dev/input/event* to ASCII in Perl?

Posted by Bogdan Constantinescu on Stack Overflow See other posts from Stack Overflow or by Bogdan Constantinescu
Published on 2010-03-30T18:27:08Z Indexed on 2010/03/30 18:53 UTC
Read the original article Hit count: 374

Filed under:
|
|
|

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? :)

© Stack Overflow or respective owner

Related posts about perl

Related posts about linux