On USB HID, Keyboard LEDs, and device emulation (2024)
epsilon537.github.io
epsilon537.github.io
Anyways, I'm learning as I go and this writeup was informative.
Once KB/mouse emulation exists, it can be integrated with Linux window manager to treat a tablet/phone as external "display", e.g. move Linux mouse pointer to the right edge of laptop display, push to the right with a bit of physics delay, then activate kb/mouse emulation and send all keystrokes and mouse movements over USB-c cable to the external device.
This would avoid the travel weight cost of a dedicated keyboard for tablet or phone.