mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[hal,wpilib] Add support for joystick outputs (#8385)
Support joystick outputs, including Rumble and LEDs. Also requires an update to Joystick descriptors, as that has also changed in mrccomm to support showing what outputs are supported.
This commit is contained in:
@@ -13,7 +13,8 @@ functions:
|
||||
HAL_GetJoystickButtons:
|
||||
HAL_GetAllJoystickData:
|
||||
HAL_GetJoystickDescriptor:
|
||||
HAL_GetJoystickType:
|
||||
HAL_GetJoystickGamepadType:
|
||||
HAL_GetJoystickSupportedOutputs:
|
||||
HAL_GetJoystickName:
|
||||
param_override:
|
||||
name:
|
||||
@@ -26,7 +27,8 @@ functions:
|
||||
WPI_FreeString(&name);
|
||||
return sname;
|
||||
}
|
||||
HAL_SetJoystickOutputs:
|
||||
HAL_SetJoystickLeds:
|
||||
HAL_SetJoystickRumble:
|
||||
HAL_GetMatchTime:
|
||||
HAL_GetOutputsEnabled:
|
||||
HAL_GetMatchInfo:
|
||||
|
||||
@@ -37,7 +37,8 @@ classes:
|
||||
available:
|
||||
HAL_JoystickDescriptor:
|
||||
attributes:
|
||||
type:
|
||||
supportedOutputs:
|
||||
gamepadType:
|
||||
name:
|
||||
isGamepad:
|
||||
HAL_MatchInfo:
|
||||
|
||||
@@ -63,11 +63,16 @@ functions:
|
||||
HALSIM_CancelJoystickDescriptorCallback:
|
||||
HALSIM_GetJoystickDescriptor:
|
||||
HALSIM_SetJoystickDescriptor:
|
||||
HALSIM_RegisterJoystickOutputsCallback:
|
||||
HALSIM_RegisterJoystickLedsCallback:
|
||||
ignore: true
|
||||
HALSIM_CancelJoystickOutputsCallback:
|
||||
HALSIM_GetJoystickOutputs:
|
||||
HALSIM_SetJoystickOutputs:
|
||||
HALSIM_CancelJoystickLedsCallback:
|
||||
HALSIM_GetJoystickLeds:
|
||||
HALSIM_SetJoystickLeds:
|
||||
HALSIM_RegisterJoystickRumblesCallback:
|
||||
ignore: true
|
||||
HALSIM_CancelJoystickRumblesCallback:
|
||||
HALSIM_GetJoystickRumbles:
|
||||
HALSIM_SetJoystickRumbles:
|
||||
HALSIM_RegisterMatchInfoCallback:
|
||||
ignore: true
|
||||
HALSIM_CancelMatchInfoCallback:
|
||||
@@ -77,7 +82,8 @@ functions:
|
||||
HALSIM_SetJoystickAxis:
|
||||
HALSIM_SetJoystickPOV:
|
||||
HALSIM_SetJoystickButtonsValue:
|
||||
HALSIM_SetJoystickType:
|
||||
HALSIM_SetJoystickGamepadType:
|
||||
HALSIM_SetJoystickSupportedOutputs:
|
||||
HALSIM_SetJoystickName:
|
||||
cpp_code: |
|
||||
[](int32_t stick, std::string_view sv) {
|
||||
|
||||
Reference in New Issue
Block a user