mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[hal] Fix joystick buttons not working on SC (#7980)
This commit is contained in:
@@ -256,8 +256,8 @@ void JoystickDataCache::Update(const mrc::ControlData& data) {
|
||||
povs[count].povs[i] = newPovs[i];
|
||||
}
|
||||
|
||||
buttons->count = newStick.Buttons.GetCount();
|
||||
buttons->buttons = newStick.Buttons.Buttons;
|
||||
buttons[count].count = newStick.Buttons.GetCount();
|
||||
buttons[count].buttons = newStick.Buttons.Buttons;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user