楼上说不能的都不了解树莓派吧.
树莓派overlay 参数里面有个 dwc-otg 和 dwc2 都是可以让树莓派称为一个 usb HID 设备的存在.
https://github.com/raspberrypi/linux/pull/1239 仔细看看
GitHub上去找P4wnP1的项目~