mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Store DriverStation-owned GenericHID and Gamepad instances in Java and C++, and expose the cached objects to Python bindings. Move hand-written command gamepad and joystick wrappers to compose cached CommandGenericHID instances plus typed HID wrappers, including a Python CommandGamepad. This will let us remove UserControls, while helping ensure that we don't have state smashing between GenericHID objects. Another bonus is without inheritance, intellisense will no longer show a bunch of annoying methods, and instead just what actually exists. --------- Co-authored-by: Peter Johnson <johnson.peter@gmail.com>
114 lines
2.3 KiB
YAML
114 lines
2.3 KiB
YAML
extra_includes:
|
|
- wpi/util/sendable/SendableBuilder.hpp
|
|
- wpi/event/BooleanEvent.hpp
|
|
|
|
classes:
|
|
wpi::NiDsPS5Controller:
|
|
force_no_trampoline: true
|
|
ignored_bases:
|
|
- wpi::util::SendableHelper<NiDsPS5Controller>
|
|
methods:
|
|
NiDsPS5Controller:
|
|
overloads:
|
|
int:
|
|
GenericHID&:
|
|
GetHID:
|
|
overloads:
|
|
"":
|
|
return_value_policy: reference_internal
|
|
'[const]':
|
|
ignore: true
|
|
GetLeftX:
|
|
GetRightX:
|
|
GetLeftY:
|
|
GetRightY:
|
|
GetL2Axis:
|
|
GetR2Axis:
|
|
GetSquareButton:
|
|
GetSquareButtonPressed:
|
|
GetSquareButtonReleased:
|
|
Square:
|
|
GetCrossButton:
|
|
GetCrossButtonPressed:
|
|
GetCrossButtonReleased:
|
|
Cross:
|
|
GetCircleButton:
|
|
GetCircleButtonPressed:
|
|
GetCircleButtonReleased:
|
|
Circle:
|
|
GetTriangleButton:
|
|
GetTriangleButtonPressed:
|
|
GetTriangleButtonReleased:
|
|
Triangle:
|
|
GetL1Button:
|
|
GetL1ButtonPressed:
|
|
GetL1ButtonReleased:
|
|
L1:
|
|
GetR1Button:
|
|
GetR1ButtonPressed:
|
|
GetR1ButtonReleased:
|
|
R1:
|
|
GetL2Button:
|
|
GetL2ButtonPressed:
|
|
GetL2ButtonReleased:
|
|
L2:
|
|
GetR2Button:
|
|
GetR2ButtonPressed:
|
|
GetR2ButtonReleased:
|
|
R2:
|
|
GetCreateButton:
|
|
GetCreateButtonPressed:
|
|
GetCreateButtonReleased:
|
|
Create:
|
|
GetOptionsButton:
|
|
GetOptionsButtonPressed:
|
|
GetOptionsButtonReleased:
|
|
Options:
|
|
GetL3Button:
|
|
GetL3ButtonPressed:
|
|
GetL3ButtonReleased:
|
|
L3:
|
|
GetR3Button:
|
|
GetR3ButtonPressed:
|
|
GetR3ButtonReleased:
|
|
R3:
|
|
GetPSButton:
|
|
GetPSButtonPressed:
|
|
GetPSButtonReleased:
|
|
PS:
|
|
Touchpad:
|
|
GetTouchpadButton:
|
|
GetTouchpadButtonPressed:
|
|
GetTouchpadButtonReleased:
|
|
IsConnected:
|
|
GetGamepadType:
|
|
GetSupportedOutputs:
|
|
GetName:
|
|
GetPort:
|
|
SetRumble:
|
|
InitSendable:
|
|
wpi::NiDsPS5Controller::Button:
|
|
attributes:
|
|
kSquare:
|
|
kCross:
|
|
kCircle:
|
|
kTriangle:
|
|
kL1:
|
|
kR1:
|
|
kL2:
|
|
kR2:
|
|
kCreate:
|
|
kOptions:
|
|
kL3:
|
|
kR3:
|
|
kPS:
|
|
kTouchpad:
|
|
wpi::NiDsPS5Controller::Axis:
|
|
attributes:
|
|
kLeftX:
|
|
kLeftY:
|
|
kRightX:
|
|
kRightY:
|
|
kL2:
|
|
kR2:
|