Add Fast Zoom In & Out functions.

Shift +/-  or  Shift Mouse Wheel

http://pulkomandy.tk/projects/GrafX2/ticket/28
This commit is contained in:
Thomas Bernard
2018-01-12 10:31:26 +01:00
parent e36cff0fef
commit 753aaf3422
5 changed files with 34 additions and 1 deletions

View File

@@ -1823,6 +1823,22 @@ T_Key_config ConfigKey[NB_SHORTCUTS] = {
SDLK_SPACE, // Space
#endif
0},
{209,
"Zoom in more",
"Increase magnifying factor more.",
"",
"",
true,
SDLK_KP_PLUS|MOD_SHIFT, // Shift++
KEY_MOUSEWHEELUP|MOD_SHIFT},
{210,
"Zoom out more",
"Increase magnifying factor more.",
"",
"",
true,
SDLK_KP_MINUS|MOD_SHIFT, // Shift+-
KEY_MOUSEWHEELDOWN|MOD_SHIFT},
};
word Ordering[NB_SHORTCUTS]=
@@ -2037,4 +2053,6 @@ word Ordering[NB_SHORTCUTS]=
0x100+BUTTON_ANIM_NEXT_FRAME,
0x100+BUTTON_ANIM_PLAY, // Unused at this time
SPECIAL_HOLD_PAN,
SPECIAL_ZOOM_IN_MORE, // Zoom in more
SPECIAL_ZOOM_OUT_MORE, // Zoom out more
};