]> git.lizzy.rs Git - plan9front.git/commitdiff
snes: fix input botch 2
authorqwx <devnull@localhost>
Sat, 9 Jun 2018 05:12:43 +0000 (07:12 +0200)
committerqwx <devnull@localhost>
Sat, 9 Jun 2018 05:12:43 +0000 (07:12 +0200)
sys/src/games/snes/snes.c

index 769ecb4734834c3e370a79a6df36ec351594913a..7d37fcbc3ea9d24a154ee97731d09ac5c3e1536f 100644 (file)
@@ -220,7 +220,7 @@ flush(void)
        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;