简体   繁体   中英

Raspberry Pi Zero emulate mouse

I'm looking for a way to use my Raspberry Pi Zero as a HID mouse.

Goal: I put the Pi in my computer and it automatically starts to move the mouse quickly from top to bottom and from bottom to top.

So in principle like the USB Rubber Ducky, but as a mouse HID

What options do I have?

I have only found this tutorial, but it isnt for mouse https://randomnerdtutorials.com/raspberry-pi-zero-usb-keyboard-hid/

I hope you can help me Thank you

If you look at this page https://forums.raspberrypi.com/viewtopic.php?t=234495 , it has a solution that allows you to send mouse movements from the RPi to the attached machine. The difference between emulating a mouse and a keyboard is that for the mouse you need to set the report_length to 3 and the bytes of the Report Descriptor are different.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM