mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03: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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user