mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2025-01-09 10:29:45 +01: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:
parent
5132ccf1e6
commit
d854c61960
1 changed files with 18 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue