Merge pull request #596 from rafccq/port-enh-mpsetupfile

Enhanced multiplayer game setup save files
This commit is contained in:
fgsfds authored and GitHub committed 2025-04-27 14:26:39 +02:00
commit 9d2db1a346
27 files changed
+1245 -247

No files matched your search

+27
View File
@@ -1197,6 +1197,33 @@ s32 inputKeyJustPressed(u32 vk)
return result;
}
s32 inputMenuAlt1MenuPressed(s32 playerNum)
{
s32 RSHOULDER = VK_JOY1_RSHOULDER + playerNum * INPUT_MAX_CONTROLLER_BUTTONS;
if (playerNum == 0) {
return inputKeyJustPressed(VK_LCTRL) || inputKeyJustPressed(RSHOULDER);
}
return inputKeyJustPressed(RSHOULDER);
}
s32 inputMenuAlt2MenuPressed(s32 playerNum)
{
s32 LSHOULDER = VK_JOY1_LSHOULDER + playerNum * INPUT_MAX_CONTROLLER_BUTTONS;
if (playerNum == 0) {
return inputKeyJustPressed(VK_LALT) || inputKeyJustPressed(LSHOULDER);
}
return inputKeyJustPressed(LSHOULDER);
}
s32 inputMenuAltMenuPressed(s32 playerNum)
{
return inputMenuAlt1MenuPressed(playerNum) || inputMenuAlt2MenuPressed(playerNum);
}
static inline u32 inputContToContKey(const u32 cont)
{
if (cont == 0) {