add center mouse and update code style

This commit is contained in:
vcaesar 2019-03-05 15:29:54 -04:00
parent 9bf349ed0b
commit bbbbefb5ff
2 changed files with 4 additions and 0 deletions

View File

@ -181,6 +181,9 @@ void dispatch_proc_end(iohook_event * const event) {
if (strcmp(cevent, "mright") == 0) { if (strcmp(cevent, "mright") == 0) {
amouse = 2; amouse = 2;
} }
if (strcmp(cevent, "center") == 0) {
amouse = 3;
}
if (strcmp(cevent, "wheelDown") == 0) { if (strcmp(cevent, "wheelDown") == 0) {
amouse = 4; amouse = 4;
} }

View File

@ -5,6 +5,7 @@ package hook
// #include "event/hook_async.h" // #include "event/hook_async.h"
*/ */
import "C" import "C"
import ( import (
"log" "log"
"time" "time"