Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

USBHIDMouse.h with Absolute Mouse positioning #8133

Closed
1 task done
gree303 opened this issue Apr 28, 2023 · 9 comments
Closed
1 task done

USBHIDMouse.h with Absolute Mouse positioning #8133

gree303 opened this issue Apr 28, 2023 · 9 comments
Assignees
Labels
Type: Feature request Feature request for Arduino ESP32

Comments

@gree303
Copy link

gree303 commented Apr 28, 2023

Related area

ESP32

Hardware specification

ESP32-S2 / Nano 33 IOT

Is your feature request related to a problem?

I'm trying to get an absolute mouse working but I'm stuck.
The USBHIDMouse does work great with relative mouse movements.
Is there any way of inserting this feature, technically speaking?
Can you tell me where I'd find the descriptor for it; this way I could fiddle my way through.

Describe the solution you'd like

Maybe you know a workaround or another Library which might work.

I've tried different attempts with different solutions; MouseTo.h, AbsMouse, HID-Project...

I do have a working CuircutPython with random absolute mouse movements running from @dglaude
It would be a real bummer switching to python this late in my project.

Any tipp or suggestion will help me... Ty

Describe alternatives you've considered

MouseTo / based on Mouse.h
AbsMouse
AbsoluteMouse5
HID-Project
TFT Touchscreen Simulation
... all kind of forum suggestions and chatGPT testing failed or resulted in a relative mouse.
All tested on multiple os's (Win/Mac/Linux)
Most of the stuff is 5-10 years old and kinda outdated ;/

Additional context

I don't mind buying you guys'n'girls a couple of beers or so
Thanks

I have checked existing list of Feature requests and the Contribution Guide

  • I confirm I have checked existing list of Feature requests and Contribution Guide.
@gree303 gree303 added the Type: Feature request Feature request for Arduino ESP32 label Apr 28, 2023
@gree303
Copy link
Author

gree303 commented Apr 28, 2023

PS: I thought about the Teensy 3.1 solution by Elmue @ Teensy 3.1

But at this point I'm kinda lost in all the research; looking forward to your input,ty.

@SuGlider
Copy link
Collaborator

@gree303 - Something like this?

    AbsoluteMouse.begin();
    AbsoluteMouse.click(50, 50);    //Middle of screen

@gree303
Copy link
Author

gree303 commented Apr 28, 2023

I have not tested your code; but yes.

@SuGlider SuGlider self-assigned this Apr 28, 2023
@SuGlider
Copy link
Collaborator

There is a HID BLE implementation for Absolute Mouse in
https://github.com/sobrinho/ESP32-BLE-Abs-Mouse

It may help your project.

@SuGlider
Copy link
Collaborator

This other Arduino project may also help:
https://github.com/jonathanedgecombe/absmouse

It is an USB HID report implementation for absolute mouse.

I think that these 2 links are good pointers to implement your project.

@gree303
Copy link
Author

gree303 commented May 10, 2023

Thanks @SuGlider I will have a look.

@gree303 gree303 closed this as completed May 10, 2023
@wukongxuetang
Copy link

@wukongxuetang
Copy link

and this one https://github.com/hathach/tinyusb/pull/1363/files/8c79b8924eabf441f40a8ce3cab8828688575b6d
esp32 tools have used tinyusb code.

@wukongxuetang
Copy link

@gree303 If you have already implemented the solution, would you like to share it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature request Feature request for Arduino ESP32
Projects
None yet
Development

No branches or pull requests

3 participants