-
Couldn't load subscription status.
- Fork 665
Add CommandGamepad for V3 commands #8311
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
base: 2027
Are you sure you want to change the base?
Conversation
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.
Just needs a constructor overload
commandsv3/src/main/java/org/wpilib/commands3/button/CommandGamepad.java
Show resolved
Hide resolved
commandsv3/src/main/java/org/wpilib/commands3/button/CommandGamepad.java
Outdated
Show resolved
Hide resolved
| public Trigger misc1() { | ||
| return misc1(getScheduler().getDefaultEventLoop()); | ||
| } | ||
|
|
||
| /** | ||
| * Constructs a Trigger instance around the Miscellaneous 1 button's digital signal. | ||
| * | ||
| * @param loop the event loop instance to attach the event to. | ||
| * @return a Trigger instance representing the Miscellaneous 1 button's digital signal attached to | ||
| * the given loop. | ||
| */ | ||
| public Trigger misc1(EventLoop loop) { |
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.
Shouldn't these be near the other miscellaneous buttons?
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.
This is the order they're defined in in SDL, and was the way it was generated.
…mepad.java Co-authored-by: Dan Katzuv <31829093+katzuv@users.noreply.github.com>
I forgot to add this.