Use PAD_BUTTON_COUNT and PAD_AXIS_COUNT instead of hard coded magic values (#104)

This commit is contained in:
Phillip Stephens
2026-04-07 11:19:07 -07:00
committed by GitHub
parent f8fbfea24c
commit 81e43dab4f
+2 -2
View File
@@ -141,10 +141,10 @@ void PADGetVidPid(u32 port, u32* vid, u32* pid);
void PADClearPort(u32 port);
const char* PADGetName(u32 port);
void PADSetButtonMapping(u32 port, PADButtonMapping mapping);
void PADSetAllButtonMappings(u32 port, PADButtonMapping buttons[12]);
void PADSetAllButtonMappings(u32 port, PADButtonMapping buttons[PAD_BUTTON_COUNT]);
PADButtonMapping* PADGetButtonMappings(u32 port, u32* buttonCount);
void PADSetAxisMapping(u32 port, PADAxisMapping mapping);
void PADSetAllAxisMappings(u32 port, PADAxisMapping axes[12]);
void PADSetAllAxisMappings(u32 port, PADAxisMapping axes[PAD_AXIS_COUNT]);
PADAxisMapping* PADGetAxisMappings(u32 port, u32* axisCount);
void PADSerializeMappings();
PADDeadZones* PADGetDeadZones(u32 port);