I am not sure whether this is the correct stackexchange section.
I would like to find a solution to use a Raspberry Pi Zero 2 W in a chain like this: Bluetooth mouse/trackpad -> Raspberry Pi Zero 2 W with modified libinput and forwarding -> Standard mouse signals via USB -> Computer recognises a standard USB mouse
As first step I would like to connect a bluetooth-only mouse (Apple Magic Trackpad in my case) via USB to any computer, such that the computer detects a standard USB mouse.
As second step I would like to customize the processing on the Raspberry Pi, such that I can use a 3-finger-drag for example (as described here: https://blog.carsoncheng.ca/2021/02/enable-3-finger-drag-on-linux.html) I already do that successfully with the trackpad connected via Bluetooth on my private Linux computer using this modified libinput driver: https://github.com/aakside/libinput
I don't know where to start though and I feel I am lacking experience, so I am hoping for some of yours before I start. Some questions I have in mind are:
- Would the Raspberry Pi Zero 2 W be suitable for this purpose?
- Do you know of any projects implementing the recognition of a Raspberry Pi as USB mouse?
- Do you know of any projects implementing the forwarding of bluetooth mouse signals to USB?
- Would you expect any lag from forwarding the mouse control signals?
Thanks for all your ideas and inspiration!