“Mouse mode” support
Some devices, like infra-red remotes, have “mouse mode” toggle buttons. Given the relative simplicity of the remote control subsystem, it would be useful if libinput could handle this mode toggle, and generate mouse movement events, and button clicks.
I could imagine that we'd need:
- a new mouse mode toggle keycode
- libinput to catch this keycode
- mouse movement to be emulated with
KEY_RIGHT
,KEY_UP
, etc. - assignment for which buttons are left/right buttons
I think that the "rc" subsystem should probably have a way to attach information about that last item to the remote's keymap, otherwise I'm not too sure how convenient it would be to have remote-specific info in multiple places.
Original bug report on linux-media: https://www.spinics.net/lists/linux-media/msg186050.html