mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[robotpy] Mirror most other subprojects (#8208)
GitOrigin-RevId: ac60fd3cf4a24023184376687da28373d14b781a This mirrors the robotpy files for the following projects: - apriltag - datalog - hal - ntcore - romiVendordep - wpilibc - wpimath - xrpVendordep This excludes cscore and the halsim wrappers for at this time. NOTE: This does not hook these projects up to the build system, just simply mirrors the files. The building will take place in a follow up PR to make it easier to review the changes necessary to build.
This commit is contained in:
54
wpilibc/src/main/python/semiwrap/GenericHID.yml
Normal file
54
wpilibc/src/main/python/semiwrap/GenericHID.yml
Normal file
@@ -0,0 +1,54 @@
|
||||
defaults:
|
||||
subpackage: interfaces
|
||||
|
||||
extra_includes:
|
||||
- frc/DriverStation.h
|
||||
- frc/event/BooleanEvent.h
|
||||
|
||||
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);
|
||||
});
|
||||
Reference in New Issue
Block a user