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

@@ -734,7 +734,14 @@ void Main_handler(void)
Button_Quit();
}
if (Key)
if (Pan_shortcut_pressed && Current_operation!=OPERATION_PAN_VIEW)
{
Hide_cursor();
Start_operation_stack(OPERATION_PAN_VIEW);
Display_cursor();
action++;
}
else if (Key)
{
effect_modified = 0;
@@ -1341,6 +1348,9 @@ void Main_handler(void)
Set_palette(Main_palette);
action++;
break;
case SPECIAL_HOLD_PAN:
// already handled by Pan_shortcut_pressed
break;
}
}
} // End of special keys