ref: 198f10bb25382882c4abd9081dac4dd74dbdbb9f
parent: 54ac2c28712e64c895679cd09e90dbe8c1288407
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;