Issue 233: Added mouse panning. Default is 'space' for new users, others need pick a key in Help screen.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1901 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2012-02-01 00:56:21 +00:00
parent 46f2ec9475
commit cbcb7a6b8f
11 changed files with 155 additions and 7 deletions

View File

@@ -163,7 +163,7 @@ T_Key_config ConfigKey[NB_SHORTCUTS] = {
"left mouse button. It's useful",
"when you want ultra-high precision.",
true,
SDLK_SPACE, // Space
SDLK_SPACE|MOD_CTRL, // Ctrl + Space
0},
{17,
"Simulate right mouse click",
@@ -1721,6 +1721,14 @@ T_Key_config ConfigKey[NB_SHORTCUTS] = {
true,
0, // No shortcut
0},
{208,
"Pan view",
"While this key is being held,",
"click and drag the mouse to",
"pan the view.",
true,
SDLK_SPACE, // Space
0},
};
word Ordering[NB_SHORTCUTS]=
@@ -1933,4 +1941,5 @@ word Ordering[NB_SHORTCUTS]=
0x100+BUTTON_ANIM_PREV_FRAME,
0x100+BUTTON_ANIM_NEXT_FRAME,
0x100+BUTTON_ANIM_PLAY,
SPECIAL_HOLD_PAN,
};