Add arrow key mouse movement to 32BitPaint, reassign canvas clear key to End.

This commit is contained in:
TomAwezome 2022-03-27 01:20:24 -04:00
parent 5b99114ef1
commit 935ea2219d

View file

@ -163,7 +163,7 @@ I0 Paint32()
"$$BLUE$$Ctrl-S$$FG$$ to save image.\n"
"$$BLUE$$Ctrl-L$$FG$$ to load image.\n\n"
"$$GREEN$$Left-click or SPACE$$FG$$ to draw.\n\n"
"$$RED$$ENTER$$FG$$ to clear image.\n"
"$$RED$$END$$FG$$ to clear image.\n"
"$$RED$$Shift-Esc or Double Right-Click$$FG$$ to exit.");
Sleep(250); // help ensure SPACE press doesn't draw early
@ -215,17 +215,25 @@ I0 Paint32()
break;
case SC_CURSOR_LEFT:
mouse.pos.x--;
break;
case SC_CURSOR_RIGHT:
mouse.pos.x++;
break;
case SC_CURSOR_UP:
mouse.pos.y--;
break;
case SC_CURSOR_DOWN:
mouse.pos.y++;
break;
case SC_END:
MemSet(paint.fb, WHITE32, text.buffer_size);
MemSet(text.fb_alias, WHITE32, text.buffer_size);
break;
}
break;
@ -260,11 +268,6 @@ I0 Paint32()
paint.color = gr_palette[ch - '0'];
break;
case '\n':
MemSet(paint.fb, WHITE32, text.buffer_size);
MemSet(text.fb_alias, WHITE32, text.buffer_size);
break;
case CH_CTRLS:
PaintSaveImage;
break;