mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[commands] Add setRumble and isConnected to CommandGenericHID (#6768)
This commit is contained in:
@@ -74,3 +74,12 @@ Trigger CommandGenericHID::AxisGreaterThan(int axis, double threshold,
|
||||
return m_hid.GetRawAxis(axis) > threshold;
|
||||
});
|
||||
}
|
||||
|
||||
void CommandGenericHID::SetRumble(frc::GenericHID::RumbleType type,
|
||||
double value) {
|
||||
m_hid.SetRumble(type, value);
|
||||
}
|
||||
|
||||
bool CommandGenericHID::IsConnected() const {
|
||||
return m_hid.IsConnected();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user