-
Notifications
You must be signed in to change notification settings - Fork 603
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
Add hidapi wiimote #934
Merged
Merged
Add hidapi wiimote #934
Changes from 7 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
ec61c3e
Add hidapi wiimote
capitalistspz 74b5a10
message size correction, no magic numbers
capitalistspz 10a1b33
whoops
capitalistspz 1639e4f
logging changes, variable rename
capitalistspz 12b02d1
No hidapi on Windows
capitalistspz 250401e
don't use compiler extensions, slight log message changes
capitalistspz 7e330fb
MSVC's non-compliance makes me cry
capitalistspz 024c7ff
check if device is opened prior to constructing HidapiWiimote
capitalistspz bfd59c1
correct read size
capitalistspz b52a073
cleanup: static cast is safe enough here; remove purposeless undef
capitalistspz e6c8c31
correct read size again, don't forget new motionplus wiimotes
capitalistspz 5476eb9
more logging changes, handle output acknowledgements,
capitalistspz 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.
Could you please move this to
src/input/CMakeLists.txt
and usetarget_compile_definitions(PRIVATE)
instead? It'd be a bit cleaner, in my opinion.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.
I'm not sure about moving this, considering that every other
find_package()
usage in the project is in the baseCMakeLists.txt
. Alsoadd_compile_definitions()
is used everywhere else in the project, rather thantarget_compile_definitions()
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.
In that case consistency is better than supposed code clarity, it's fine to leave this as is :)