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

后端 未结 4 670
梦谈多话
梦谈多话 2020-12-15 14:06

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

4条回答
  •  旧巷少年郎
    2020-12-15 14:29

    It's basically a map problem. You have to take a keycode and lookup its ASCII equivalent. What about the "array part" do you think is not a good practice?

    I didn't see a module for this on CPAN, but that means that you have a chance to be the first to upload it. :)

提交回复
热议问题