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:
parent
0e40892eb0
commit
163f3a0fde
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue