kbdfs: mouse twitching

This commit is contained in:
cinap_lenrek 2012-02-13 07:21:59 +01:00
parent 4780a7ff56
commit ef310cbd28

View file

@ -394,15 +394,17 @@ keyproc(void *)
rb[0] = 'k';
}
if(rb[0]){
if(key.r == Kshift && mctlfd >= 0){
if(key.down){
fprint(mctlfd, "buttonmap 132");
} else {
fprint(mctlfd, "swap");
fprint(mctlfd, "swap");
if(mctlfd >= 0){
if(key.r == Kshift){
if(key.down){
fprint(mctlfd, "buttonmap 132");
} else {
fprint(mctlfd, "swap");
fprint(mctlfd, "swap");
}
}
fprint(mctlfd, "twitch");
}
if(kbdopen){
s = utfconv(rb, nb+1);
if(nbsendp(kbdchan, s) <= 0)