git: 9front

Download patch

ref: aada8bda02e3454a412ae28bceaf4088d2a53ff4
parent: d005d6d2464437908cf1b30f25e6f0d19ef33176
author: qwx <devnull@localhost>
date: Sat Jun 9 03:12:43 EDT 2018

snes: fix input botch 2

--- a/sys/src/games/snes/snes.c
+++ b/sys/src/games/snes/snes.c
@@ -220,7 +220,7 @@
 	extern Rectangle picr;
 	extern Mousectl *mc;
 	flushmouse(!mouse);
-	while(nbrecv(mc->c, &m) > 0){
+	while(mouse && nbrecv(mc->c, &m) > 0){
 		if(ptinrect(m.xy, picr)){
 			p = subpt(m.xy, picr.min);
 			p.x /= scale;
--