update go mod pkg

This commit is contained in:
vcaesar 2019-03-08 11:02:21 -04:00
parent e0ac006ff1
commit ece4ec792f
5 changed files with 8 additions and 4 deletions

2
go.mod
View File

@ -7,7 +7,7 @@ require (
github.com/go-ole/go-ole v1.2.4 // indirect
github.com/lxn/win v0.0.0-20190226192825-50e22abd4ff9
github.com/otiai10/gosseract v2.2.1+incompatible
github.com/robotn/gohook v0.0.0-20190227143424-9bf349ed0b6d
github.com/robotn/gohook v0.0.0-20190305192954-bbbbefb5ff85
github.com/shirou/gopsutil v0.0.0-20190131151121-071446942108
github.com/shirou/w32 v0.0.0-20160930032740-bb4de0191aa4 // indirect
github.com/vcaesar/imgo v0.0.0-20181209162409-13af122cf2fa

4
go.sum
View File

@ -14,8 +14,8 @@ github.com/lxn/win v0.0.0-20190226192825-50e22abd4ff9 h1:7noriXA0DUpF8QGGBsuGCRn
github.com/lxn/win v0.0.0-20190226192825-50e22abd4ff9/go.mod h1:jACzEp9RV7NhfPJQkiCNTteU4nkZZVlvkNpYtVOZPfE=
github.com/otiai10/gosseract v2.2.1+incompatible h1:Ry5ltVdpdp4LAa2bMjsSJH34XHVOV7XMi41HtzL8X2I=
github.com/otiai10/gosseract v2.2.1+incompatible/go.mod h1:XrzWItCzCpFRZ35n3YtVTgq5bLAhFIkascoRo8G32QE=
github.com/robotn/gohook v0.0.0-20190227143424-9bf349ed0b6d h1:AYuqgHF+CzRt+kNH7MVXu6GL8CEScvlIkmBO7cpaMAo=
github.com/robotn/gohook v0.0.0-20190227143424-9bf349ed0b6d/go.mod h1:YD5RyCnUEY2xqtkkgeQVZ31UAfAnVPwUxpTE5cwSXg4=
github.com/robotn/gohook v0.0.0-20190305192954-bbbbefb5ff85 h1:1PEPida55e7OPyWDRzJ/c2TbLpsvGjA0M6ib6aMru9w=
github.com/robotn/gohook v0.0.0-20190305192954-bbbbefb5ff85/go.mod h1:YD5RyCnUEY2xqtkkgeQVZ31UAfAnVPwUxpTE5cwSXg4=
github.com/shirou/gopsutil v0.0.0-20190131151121-071446942108 h1:XXgDK65TPH+Qbo2sdYHldM5avclwThBXVYZHxroFkTQ=
github.com/shirou/gopsutil v0.0.0-20190131151121-071446942108/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA=
github.com/shirou/gopsutil v2.18.12+incompatible h1:1eaJvGomDnH74/5cF4CTmTbLHAriGFsTZppLXDX93OM=

View File

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

View File

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

2
vendor/modules.txt vendored
View File

@ -17,7 +17,7 @@ github.com/go-ole/go-ole/oleutil
github.com/lxn/win
# github.com/otiai10/gosseract v2.2.1+incompatible
github.com/otiai10/gosseract
# github.com/robotn/gohook v0.0.0-20190227143424-9bf349ed0b6d
# github.com/robotn/gohook v0.0.0-20190305192954-bbbbefb5ff85
github.com/robotn/gohook
# github.com/shirou/gopsutil v0.0.0-20190131151121-071446942108
github.com/shirou/gopsutil/process