[hal,wpilib] Add Touchpad support (#8401)

This commit is contained in:
Thad House
2025-11-21 13:57:11 -08:00
committed by GitHub
parent 8546d301e3
commit 32fc543dc8
34 changed files with 1319 additions and 437 deletions

View File

@@ -57,6 +57,8 @@ classes:
GetStickPOVsAvailable:
GetStickButtonsMaximumIndex:
GetStickButtonsAvailable:
GetStickTouchpadFinger:
GetStickTouchpadFingerAvailable:
inline_code: |
.def("getControlState",
[](DriverStation *self) -> std::tuple<bool, bool, bool> {
@@ -70,3 +72,8 @@ classes:
".. versionadded:: 2019.2.1\n"
"\n"
".. note:: This function only exists in RobotPy\n"))
wpi::DriverStation::TouchpadFinger:
attributes:
down:
x:
y:

View File

@@ -47,6 +47,8 @@ classes:
GetPOVsAvailable:
GetButtonsMaximumIndex:
GetButtonsAvailable:
GetTouchpadFingerAvailable:
GetTouchpadFinger:
inline_code: |
cls_GenericHID