mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
[hal,wpilib] Switch to new game data (#8584)
Game data is now limited to 8 bytes, and comes through the UDP packets.
This commit is contained in:
@@ -43,3 +43,4 @@ functions:
|
||||
HAL_ObserveUserProgram:
|
||||
GetControlWord:
|
||||
GetUncachedControlWord:
|
||||
HAL_GetGameData:
|
||||
|
||||
@@ -45,8 +45,6 @@ classes:
|
||||
matchType:
|
||||
matchNumber:
|
||||
replayNumber:
|
||||
gameSpecificMessage:
|
||||
gameSpecificMessageSize:
|
||||
HAL_JoystickTouchpadFinger:
|
||||
attributes:
|
||||
down:
|
||||
@@ -93,6 +91,9 @@ classes:
|
||||
IsTest:
|
||||
IsTestEnabled:
|
||||
GetValue:
|
||||
HAL_GameData:
|
||||
attributes:
|
||||
gameData:
|
||||
functions:
|
||||
HAL_MakeControlWord:
|
||||
HAL_ControlWord_GetOpModeHash:
|
||||
|
||||
@@ -68,6 +68,11 @@ functions:
|
||||
HALSIM_CancelMatchInfoCallback:
|
||||
HALSIM_GetMatchInfo:
|
||||
HALSIM_SetMatchInfo:
|
||||
HALSIM_RegisterGameDataCallback:
|
||||
ignore: true
|
||||
HALSIM_CancelGameDataCallback:
|
||||
HALSIM_GetGameData:
|
||||
HALSIM_SetGameData:
|
||||
HALSIM_SetJoystickButton:
|
||||
HALSIM_SetJoystickAxis:
|
||||
HALSIM_SetJoystickPOV:
|
||||
@@ -80,11 +85,11 @@ functions:
|
||||
auto s = wpi::util::make_string(sv);
|
||||
HALSIM_SetJoystickName(stick, &s);
|
||||
}
|
||||
HALSIM_SetGameSpecificMessage:
|
||||
HALSIM_SetGameDataString:
|
||||
cpp_code: |
|
||||
[](std::string_view sv) {
|
||||
auto s = wpi::util::make_string(sv);
|
||||
HALSIM_SetGameSpecificMessage(&s);
|
||||
HALSIM_SetGameDataString(&s);
|
||||
}
|
||||
HALSIM_SetEventName:
|
||||
cpp_code: |
|
||||
|
||||
Reference in New Issue
Block a user