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:
12
src/engine.c
12
src/engine.c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user