mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
[wpilib] Rename GenericHID and Gamepad enums to all caps
GenericHID.getSupportedOutputs(): Return EnumSet Gamepad: Add Button-taking accessors
This commit is contained in:
@@ -2,6 +2,9 @@ classes:
|
||||
wpi::Gamepad:
|
||||
ignored_bases:
|
||||
- wpi::util::SendableHelper<Gamepad>
|
||||
enums:
|
||||
Button:
|
||||
Axis:
|
||||
methods:
|
||||
Gamepad:
|
||||
GetLeftX:
|
||||
@@ -122,40 +125,12 @@ classes:
|
||||
GetMisc6ButtonPressed:
|
||||
GetMisc6ButtonReleased:
|
||||
Misc6:
|
||||
GetButton:
|
||||
GetButtonPressed:
|
||||
GetButtonReleased:
|
||||
ButtonEvent:
|
||||
rename: button
|
||||
GetAxis:
|
||||
AxisLessThan:
|
||||
AxisGreaterThan:
|
||||
InitSendable:
|
||||
wpi::Gamepad::Button:
|
||||
attributes:
|
||||
kSouthFace:
|
||||
kEastFace:
|
||||
kWestFace:
|
||||
kNorthFace:
|
||||
kBack:
|
||||
kGuide:
|
||||
kStart:
|
||||
kLeftStick:
|
||||
kRightStick:
|
||||
kLeftBumper:
|
||||
kRightBumper:
|
||||
kDpadUp:
|
||||
kDpadDown:
|
||||
kDpadLeft:
|
||||
kDpadRight:
|
||||
kMisc1:
|
||||
kRightPaddle1:
|
||||
kLeftPaddle1:
|
||||
kRightPaddle2:
|
||||
kLeftPaddle2:
|
||||
kTouchpad:
|
||||
kMisc2:
|
||||
kMisc3:
|
||||
kMisc4:
|
||||
kMisc5:
|
||||
kMisc6:
|
||||
wpi::Gamepad::Axis:
|
||||
attributes:
|
||||
kLeftX:
|
||||
kLeftY:
|
||||
kRightX:
|
||||
kRightY:
|
||||
kLeftTrigger:
|
||||
kRightTrigger:
|
||||
|
||||
@@ -7,6 +7,7 @@ classes:
|
||||
enums:
|
||||
RumbleType:
|
||||
SupportedOutputs:
|
||||
arithmetic: true
|
||||
HIDType:
|
||||
methods:
|
||||
GenericHID:
|
||||
@@ -46,7 +47,6 @@ classes:
|
||||
GetButtonsAvailable:
|
||||
GetTouchpadFingerAvailable:
|
||||
GetTouchpadFinger:
|
||||
|
||||
inline_code: |
|
||||
cls_GenericHID
|
||||
.def("__repr__", [](py::handle self) {
|
||||
|
||||
@@ -7,8 +7,10 @@ classes:
|
||||
methods:
|
||||
GamepadSim:
|
||||
overloads:
|
||||
const Gamepad&:
|
||||
const wpi::Gamepad&:
|
||||
int:
|
||||
SetButton:
|
||||
SetAxis:
|
||||
SetLeftX:
|
||||
SetLeftY:
|
||||
SetRightX:
|
||||
|
||||
Reference in New Issue
Block a user