mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
57 lines
1.3 KiB
YAML
57 lines
1.3 KiB
YAML
extra_includes:
|
|
- wpi/driverstation/internal/DriverStationBackend.hpp
|
|
- wpi/event/BooleanEvent.hpp
|
|
|
|
classes:
|
|
wpi::GenericHID:
|
|
enums:
|
|
RumbleType:
|
|
SupportedOutputs:
|
|
arithmetic: true
|
|
HIDType:
|
|
methods:
|
|
GenericHID:
|
|
GetRawButton:
|
|
GetRawButtonPressed:
|
|
GetRawButtonReleased:
|
|
Button:
|
|
GetRawAxis:
|
|
GetPOV:
|
|
POV:
|
|
overloads:
|
|
POVDirection, EventLoop* [const]:
|
|
int, POVDirection, EventLoop* [const]:
|
|
POVUp:
|
|
POVUpRight:
|
|
POVRight:
|
|
POVDownRight:
|
|
POVDown:
|
|
POVDownLeft:
|
|
POVLeft:
|
|
POVUpLeft:
|
|
POVCenter:
|
|
AxisLessThan:
|
|
AxisGreaterThan:
|
|
IsConnected:
|
|
GetGamepadType:
|
|
GetSupportedOutputs:
|
|
GetName:
|
|
GetPort:
|
|
SetLeds:
|
|
SetRumble:
|
|
GetAxesMaximumIndex:
|
|
GetAxesAvailable:
|
|
GetPOVsMaximumIndex:
|
|
GetPOVsAvailable:
|
|
GetButtonsMaximumIndex:
|
|
GetButtonsAvailable:
|
|
GetTouchpadFingerAvailable:
|
|
GetTouchpadFinger:
|
|
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);
|
|
});
|