1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 09:39:43 +01:00

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

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);