dglaude / CircuitPython_udraw_Absolute_Mouse

MIT License
3 stars 1 forks source link

using mouse_abs without UDraw for mouse simulation? #2

Closed gree303 closed 1 year ago

gree303 commented 1 year ago

thanks for sharing this neat project. I'm working on something similar but without any input device attached to it. May I ask for some details on how to use the mouse_abs library with adafruit_hid together?

Thanks in advance @dglaude

dglaude commented 1 year ago

My project/repo has been forked and is now part of Circuit Python Community bundle that group together many useful library: https://github.com/Neradoc/CircuitPython_Absolute_Mouse

In there you have a simple test: https://github.com/Neradoc/CircuitPython_Absolute_Mouse/blob/main/examples/absolute_mouse_simpletest.py that has no input device and drive adafruit_hid to move the mouse around.

gree303 commented 1 year ago

works - awesome! ty

gree303 commented 1 year ago

@dglaude do you know if there is such a library for Arduino, like the one you have created? It's the last piece to my project; it's awesome that your code works; but I'd need to rewrite my entire codebase from Arduino to Python.

I understand it's non of your business; just wondering in case you know some alternative I'm very open to any suggestion(s). Thanks.

dglaude commented 1 year ago

I may have found Arduino equivalent, but since I did not acknowledge that, I likely did not use it. I would say Teensy has C code for HID and maybe one is absolute mouse. USB Host is not super common. But you need code where you can fully describe the USB-HID descriptor to go for absolute mouse... that is where it become a unicorn that only a good search engine and checking 10-20 responses help you find.

gree303 commented 1 year ago

Yeah - you are right; ... one of the better sites = Teensy 3.1

Thanks for your input and sharing your code. -best