games/gb: del instead of f12/o
This commit is contained in:
parent
9cab16b426
commit
69f5a04ac3
1 changed files with 2 additions and 2 deletions
|
@ -178,7 +178,7 @@ keyproc(void *)
|
||||||
if(read(fd, buf, 256) <= 0)
|
if(read(fd, buf, 256) <= 0)
|
||||||
sysfatal("read /dev/kbd: %r");
|
sysfatal("read /dev/kbd: %r");
|
||||||
if(buf[0] == 'c'){
|
if(buf[0] == 'c'){
|
||||||
if(utfrune(buf, KF|12) || utfrune(buf, 'o'))
|
if(utfrune(buf, Kdel))
|
||||||
threadexitsall(nil);
|
threadexitsall(nil);
|
||||||
if(utfrune(buf, KF|5))
|
if(utfrune(buf, KF|5))
|
||||||
savereq = 1;
|
savereq = 1;
|
||||||
|
@ -199,7 +199,7 @@ keyproc(void *)
|
||||||
qlock(&pauselock);
|
qlock(&pauselock);
|
||||||
paused = !paused;
|
paused = !paused;
|
||||||
break;
|
break;
|
||||||
case KF|12:
|
case Kdel:
|
||||||
threadexitsall(nil);
|
threadexitsall(nil);
|
||||||
case Kdown:
|
case Kdown:
|
||||||
keys |= 1<<3;
|
keys |= 1<<3;
|
||||||
|
|
Loading…
Reference in a new issue