[hal] Fix joystick buttons not working on SC (#7980)

This commit is contained in:
Thad House
2025-05-18 07:03:52 -07:00
committed by GitHub
parent 231ec348fe
commit 0cb4df7e05
6 changed files with 13 additions and 13 deletions

View File

@@ -21,7 +21,7 @@ typedef struct _mrc_proto_ProtobufJoystickData {
static pb_filedesc_t file_descriptor(void) noexcept;
uint32_t ButtonCount;
uint32_t Buttons;
uint64_t Buttons;
pb_callback_t Axes;
/* Each POV takes up 4 bits
We can fit 8 in here. */
@@ -155,7 +155,7 @@ typedef struct _mrc_proto_ProtobufAvailableOpModes {
/* Struct field encoding specification for nanopb */
#define mrc_proto_ProtobufJoystickData_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, UINT32, ButtonCount, 1) \
X(a, STATIC, SINGULAR, FIXED32, Buttons, 2) \
X(a, STATIC, SINGULAR, UINT64, Buttons, 2) \
X(a, CALLBACK, REPEATED, SINT32, Axes, 3) \
X(a, STATIC, SINGULAR, UINT32, POVCount, 4) \
X(a, STATIC, SINGULAR, UINT32, POVs, 5)