mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
55 lines
1.1 KiB
YAML
55 lines
1.1 KiB
YAML
defaults:
|
|
subpackage: interfaces
|
|
|
|
extra_includes:
|
|
- wpi/driverstation/DriverStation.hpp
|
|
- wpi/event/BooleanEvent.hpp
|
|
|
|
classes:
|
|
frc::GenericHID:
|
|
enums:
|
|
RumbleType:
|
|
HIDType:
|
|
methods:
|
|
GenericHID:
|
|
GetRawButton:
|
|
GetRawButtonPressed:
|
|
GetRawButtonReleased:
|
|
Button:
|
|
GetRawAxis:
|
|
GetPOV:
|
|
POV:
|
|
overloads:
|
|
DriverStation::POVDirection, EventLoop* [const]:
|
|
int, DriverStation::POVDirection, EventLoop* [const]:
|
|
POVUp:
|
|
POVUpRight:
|
|
POVRight:
|
|
POVDownRight:
|
|
POVDown:
|
|
POVDownLeft:
|
|
POVLeft:
|
|
POVUpLeft:
|
|
POVCenter:
|
|
AxisLessThan:
|
|
AxisGreaterThan:
|
|
GetAxisCount:
|
|
GetPOVCount:
|
|
GetButtonCount:
|
|
IsConnected:
|
|
GetType:
|
|
GetName:
|
|
GetAxisType:
|
|
GetPort:
|
|
SetOutput:
|
|
SetOutputs:
|
|
SetRumble:
|
|
|
|
inline_code: |
|
|
cls_GenericHID
|
|
.def("__repr__", [](py::handle self) {
|
|
py::object type_name = self.get_type().attr("__qualname__");
|
|
int port = self.cast<GenericHID&>().GetPort();
|
|
return py::str("<{} {}>").format(type_name, port);
|
|
});
|