python-evdev icon indicating copy to clipboard operation
python-evdev copied to clipboard

cannot convert keycodes to character sequences

Open m3m0m2 opened this issue 8 years ago • 1 comments

Hello,

I've started working on a project that reads from a remote control and sends the input to another child process. I could try to find out the key mapping by trial and error, but I hoped I could find something ready to do this.

Unfortunately evdev doesn't seem to help much with it, only shows keycodes e.g. KEY_UP = 103, that can only be redirected system wide (using UInput.write()), but does not map to convert the keycode to the corresponding ascii character sequence ("\027[A") or allow to redirect the input to a user process

Do you know a way to see this mapping?

Regards, Mauro

m3m0m2 avatar Aug 05 '17 13:08 m3m0m2

That mapping is going to depend per-keyboard.

DanielJoyce avatar Dec 12 '19 17:12 DanielJoyce