-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Absolute mouse support #6331
Closed
Closed
Absolute mouse support #6331
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
b07cae7
Absolute mouse support
tobozo 841f40d
Absolute mouse support
tobozo 0c699eb
ping gh-actions
tobozo 35a0054
Update USBHIDMouse.h
tobozo 5ed84d5
Update USBHIDMouse.cpp
tobozo a49b3b0
Update hid.h
tobozo ef4da22
Update hid_device.h
tobozo 76a3827
Update USBHIDMouse.h
tobozo 70517cc
Update USBHIDMouse.h
tobozo 15d8ea3
Update USBHIDMouse.cpp
tobozo ac94db6
Update hid.h
tobozo 73874d6
Merge branch 'master' into patch-4
SuGlider 00d8a39
Merge branch 'master' into patch-4
tobozo 01fc118
Merge branch 'master' into patch-4
tobozo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any change to headers in the sdk folder should be done in the appropriate remote place. in his case, it is https://github.com/hathach/tinyusb
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! PR submitted hathach/tinyusb#1363
I need to solve other C++ issues with the build breaking, I don't know how (and if) to template
move()
,click()
andbuttons()
in the base class and have them superseded in the absolute/relative inherited classes.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's get the descriptor merged into tinyusb and then we will discuss how to best plug it in. Probably separate class with own report ID
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are separate classes:
USBHIDRelativeMouse
(aliased asUSBHIDMouse
for legacy), andUSBHIDAbsoluteMouse
.There's also a base class
USBHIDMouseBase
but only to provide inheritance, so it's not an issue to have separate instances and should also work with a different report ID.I tried to solve the build errors by using virtual / override, will do more testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The build failed for ESP32 only, but looking at the error it's not coming from my pull request.
Will I have to do something to trigger the check_suite once this is fixed on arduino-esp32 repo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
last build error points to a missing implementation for esp32s3, I can't remember why this PR was only targeting esp32s2, but I wonder how this should be dealt with: should I also apply the hid patch to sdk/tools/esp32s3/includes/arduino_tinyusb folder?
also the mouse class needs rewriting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
header patches should not be in the sdk folder at all. They should be in
USBHIDMouse.h
. In 3.0.0 SDK is no longer part of the repo.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh nice, that makes more sense, also it simplifies the path
I guess this PR is no longer relevant since it's based on the 2.x.x core, should I keep it open until I can properly test it with core 3.0.0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes. It should work with 3.0.0 as well