2025-10-24 01:28:04 -04:00
|
|
|
extra_includes:
|
2026-04-18 19:56:45 -07:00
|
|
|
- wpi/driverstation/internal/DriverStationBackend.hpp
|
2025-11-07 19:56:21 -05:00
|
|
|
- wpi/event/BooleanEvent.hpp
|
2025-10-24 01:28:04 -04:00
|
|
|
|
|
|
|
|
classes:
|
2025-11-07 20:00:05 -05:00
|
|
|
wpi::GenericHID:
|
2025-10-24 01:28:04 -04:00
|
|
|
enums:
|
|
|
|
|
RumbleType:
|
2025-11-17 14:36:14 -08:00
|
|
|
SupportedOutputs:
|
2026-03-17 17:19:58 -07:00
|
|
|
arithmetic: true
|
2025-10-24 01:28:04 -04:00
|
|
|
HIDType:
|
|
|
|
|
methods:
|
|
|
|
|
GenericHID:
|
|
|
|
|
GetRawButton:
|
|
|
|
|
GetRawButtonPressed:
|
|
|
|
|
GetRawButtonReleased:
|
|
|
|
|
Button:
|
|
|
|
|
GetRawAxis:
|
|
|
|
|
GetPOV:
|
|
|
|
|
POV:
|
|
|
|
|
overloads:
|
2026-04-18 19:56:45 -07:00
|
|
|
POVDirection, EventLoop* [const]:
|
|
|
|
|
int, POVDirection, EventLoop* [const]:
|
2025-10-24 01:28:04 -04:00
|
|
|
POVUp:
|
|
|
|
|
POVUpRight:
|
|
|
|
|
POVRight:
|
|
|
|
|
POVDownRight:
|
|
|
|
|
POVDown:
|
|
|
|
|
POVDownLeft:
|
|
|
|
|
POVLeft:
|
|
|
|
|
POVUpLeft:
|
|
|
|
|
POVCenter:
|
|
|
|
|
AxisLessThan:
|
|
|
|
|
AxisGreaterThan:
|
|
|
|
|
IsConnected:
|
2025-11-17 14:36:14 -08:00
|
|
|
GetGamepadType:
|
|
|
|
|
GetSupportedOutputs:
|
2025-10-24 01:28:04 -04:00
|
|
|
GetName:
|
|
|
|
|
GetPort:
|
2025-11-17 14:36:14 -08:00
|
|
|
SetLeds:
|
2025-10-24 01:28:04 -04:00
|
|
|
SetRumble:
|
2025-11-07 19:58:22 -05:00
|
|
|
GetAxesMaximumIndex:
|
|
|
|
|
GetAxesAvailable:
|
|
|
|
|
GetPOVsMaximumIndex:
|
|
|
|
|
GetPOVsAvailable:
|
|
|
|
|
GetButtonsMaximumIndex:
|
|
|
|
|
GetButtonsAvailable:
|
2025-11-21 13:57:11 -08:00
|
|
|
GetTouchpadFingerAvailable:
|
|
|
|
|
GetTouchpadFinger:
|
2025-10-24 01:28:04 -04:00
|
|
|
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);
|
|
|
|
|
});
|