shithub: sce

Download patch

ref: 294af48f3fc87bcb7f619ea6696072695335d2a1
parent: 0d22158b1c61e80e82404465c1a111f4c71b0ab0
author: qwx <qwx@sciops.net>
date: Mon Jul 5 01:31:07 EDT 2021

vspr: allow moving shadow on x axis

--- a/utils/vspr.c
+++ b/utils/vspr.c
@@ -251,8 +251,12 @@
 			case 'r':
 			case Kesc: pan = ZP; redraw(); break;
 			case ' ': setpause(); break;
-			case Kup: shadofs.y -= 1; redraw(); break;
-			case Kdown: shadofs.y += 1; redraw(); break;
+			case 'w': shadofs.y--; redraw(); break;
+			case 's': shadofs.y++; redraw(); break;
+			case 'a': shadofs.x--; redraw(); break;
+			case 'd': shadofs.x++; redraw(); break;
+			case Kup: pan.y--; redraw(); break;
+			case Kdown: pan.y++; redraw(); break;
 			case Kright: rot = (rot + 1) % nrot; redraw(); break;
 			case Kleft: if(--rot < 0) rot = nrot - 1; redraw(); break;
 			case Kdel: case 'q': threadexitsall(nil);