Files
allwpilib/wpilibc/src/main/python/semiwrap/GenericHID.yml

57 lines
1.2 KiB
YAML
Raw Normal View History

defaults:
subpackage: interfaces
extra_includes:
2025-11-07 19:56:21 -05:00
- wpi/driverstation/DriverStation.hpp
- wpi/event/BooleanEvent.hpp
classes:
2025-11-07 20:00:05 -05:00
wpi::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:
IsConnected:
GetType:
GetName:
GetPort:
SetOutput:
SetOutputs:
SetRumble:
2025-11-07 19:58:22 -05:00
GetAxesMaximumIndex:
GetAxesAvailable:
GetPOVsMaximumIndex:
GetPOVsAvailable:
GetButtonsMaximumIndex:
GetButtonsAvailable:
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);
});