- use an array to store the buttons.
This puts a lot less knowledge about the game's features into the low level code.
This commit is contained in:
parent
0e7480b4ed
commit
8dacdf2951
13 changed files with 405 additions and 251 deletions
|
|
@ -360,7 +360,7 @@ void M_StartControlPanel (bool makeSound, bool scaleoverride)
|
|||
if (CurrentMenu != nullptr)
|
||||
return;
|
||||
|
||||
ResetButtonStates ();
|
||||
buttonMap.ResetButtonStates ();
|
||||
for (int i = 0; i < NUM_MKEYS; ++i)
|
||||
{
|
||||
MenuButtons[i].ReleaseKey(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue