Allow using W and S in editor menus

There was an inconsistency where W and S couldn't be used in place of
the Up and Down arrow keys, but this has been fixed.

This only applies where W and S otherwise are not bound to anything
else. E.g. not the main editor (where W changes the warp direction and S
saves the level) and not the script editor (where W and S can be typed
inside a script), but the script list is fine.
This commit is contained in:
Misa 2024-01-09 20:49:42 -08:00
parent 0e40892eb0
commit 163f3a0fde
1 changed files with 5 additions and 0 deletions

View File

@ -3504,6 +3504,8 @@ void editorinput(void)
// We're in the menu!
case EditorState_MENU:
up_pressed |= key.isDown(KEYBOARD_w);
down_pressed |= key.isDown(KEYBOARD_s);
switch (ed.substate)
{
@ -3614,6 +3616,9 @@ void editorinput(void)
{
case EditorSubState_MAIN:
{
up_pressed |= key.isDown(KEYBOARD_w);
down_pressed |= key.isDown(KEYBOARD_s);
if (escape_pressed)
{
music.playef(Sound_VIRIDIAN);