-
Notifications
You must be signed in to change notification settings - Fork 21
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
XInput #2
Conversation
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
Distinguish at a glance from the 'normal' boards in the IDE
Can't be used since PluggableHID and XInput are mutually exclusive
Not compatible with XInput, which requires a static descriptor
Unused if pluggable USB is not enabled. Should submit a PR to fix this in the main repo...
Allows sketches using Serial to compile but discards all data
This will compile but will NOT enumerate properly without a config descriptor. You've been warned...
Easier for the AVR to deal with the memory if the in/out numbers aren't paired.
Better to set these where intended so they can be easily overridden if need be.
Using the OUT endpoint interrupt
No reason not to take advantage of this feature, although with the interrupt in place I doubt it will be useful.
Returns true if the device USB is configured. Although will still return true if the device has been configured and the USB data pins disconnected...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Modifies the core files to change the USB mode to XInput, emulating an Xbox 360 wired gamepad. This includes:
XInputUSB
APIReworking the USB mode requires the following associated changes to the Arduino files:
Serial_
class with dummy. Sketches using theSerial
object will compile but will not output serial data over USB.This seems to work perfectly with my testing on Windows 10 x64. I don't have a Mac or Linux PC setup to test with, but I'm hoping the endpoint renumbering (5b5ddcf) doesn't cause any issues.