mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03:00
Add Shift+F1/F2/F3 hotkeys
Allowing users to reverse cycle tilesets/tilecols/enemies prevents them from having to press the hotkey a zillion times in order to get to the one they want if the one they want just happens to be behind the current one they're on.
This commit is contained in:
@@ -4573,6 +4573,24 @@ void editorinput()
|
||||
else if (key.keymap[SDLK_LSHIFT] || key.keymap[SDLK_RSHIFT])
|
||||
{
|
||||
// Shift modifiers
|
||||
if (key.keymap[SDLK_F1])
|
||||
{
|
||||
ed.switch_tileset(true);
|
||||
graphics.backgrounddrawn = false;
|
||||
ed.keydelay = 6;
|
||||
}
|
||||
if (key.keymap[SDLK_F2])
|
||||
{
|
||||
ed.switch_tilecol(true);
|
||||
graphics.backgrounddrawn = false;
|
||||
ed.keydelay = 6;
|
||||
}
|
||||
if (key.keymap[SDLK_F3])
|
||||
{
|
||||
ed.switch_enemy(true);
|
||||
ed.keydelay=6;
|
||||
}
|
||||
|
||||
if (up_pressed || down_pressed || left_pressed || right_pressed)
|
||||
{
|
||||
ed.keydelay=6;
|
||||
|
||||
Reference in New Issue
Block a user