mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-19 22:42:46 +00:00
M_HandleMenuInput: Pass a choice of 2 to IT_CVAR/IT_ARROWS routines
- Permits IT_ARROWS routines to distinguish between a rightward input and an A-button input. - Only M_ChangeCvar needed to change to accomodate this - every other example of IT_ARROWS already acommodates this
This commit is contained in:
parent
96297aad1c
commit
3ca1c554c4
1 changed files with 2 additions and 2 deletions
|
|
@ -143,7 +143,7 @@ static void M_ChangeCvar(INT32 choice)
|
|||
return;
|
||||
}
|
||||
|
||||
choice = (choice<<1) - 1;
|
||||
choice = (choice == 0 ? -1 : 1);
|
||||
|
||||
if (((currentMenu->menuitems[itemOn].status & IT_CVARTYPE) == IT_CV_SLIDER)
|
||||
|| ((currentMenu->menuitems[itemOn].status & IT_CVARTYPE) == IT_CV_INVISSLIDER)
|
||||
|
|
@ -939,7 +939,7 @@ static void M_HandleMenuInput(void)
|
|||
{
|
||||
case IT_CVAR:
|
||||
case IT_ARROWS:
|
||||
routine(1); // right arrow
|
||||
routine(2); // usually right arrow
|
||||
break;
|
||||
case IT_CALL:
|
||||
routine(itemOn);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue