[commands] Replace Command HID inheritance with delegation (#4470)

This commit is contained in:
Starlight220
2022-10-23 22:09:44 +03:00
committed by GitHub
parent 9e1f9c1133
commit 09faf31b67
13 changed files with 1201 additions and 101 deletions

View File

@@ -6,6 +6,10 @@
using namespace frc2;
Trigger CommandXboxController::Button(int button, frc::EventLoop* loop) const {
return GenericHID::Button(button, loop).CastTo<Trigger>();
}
Trigger CommandXboxController::LeftBumper(frc::EventLoop* loop) const {
return XboxController::LeftBumper(loop).CastTo<Trigger>();
}