kbdfs: mouse twitching
This commit is contained in:
parent
4780a7ff56
commit
ef310cbd28
1 changed files with 9 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue