diff --git a/README.md b/README.md index 764879e..5e76383 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,21 @@ # gohook -This is a work in progress. \ No newline at end of file +This is a work in progress. + +```Go +package main + +import ( + "fmt" + + "go-vgo/robotn/gohook" +) + +func main() { + hook.AsyncHook() + veve := hook.AddEvent("v") + if veve == 0 { + fmt.Println("v...") + } +} +``` \ No newline at end of file diff --git a/event/hook/darwin/event_c.h b/hook/darwin/event_c.h similarity index 100% rename from event/hook/darwin/event_c.h rename to hook/darwin/event_c.h diff --git a/event/hook/darwin/hook_c.h b/hook/darwin/hook_c.h similarity index 100% rename from event/hook/darwin/hook_c.h rename to hook/darwin/hook_c.h diff --git a/event/hook/darwin/input.h b/hook/darwin/input.h similarity index 100% rename from event/hook/darwin/input.h rename to hook/darwin/input.h diff --git a/event/hook/darwin/input_c.h b/hook/darwin/input_c.h similarity index 100% rename from event/hook/darwin/input_c.h rename to hook/darwin/input_c.h diff --git a/event/hook/darwin/properties_c.h b/hook/darwin/properties_c.h similarity index 100% rename from event/hook/darwin/properties_c.h rename to hook/darwin/properties_c.h diff --git a/event/hook/iohook.h b/hook/iohook.h similarity index 100% rename from event/hook/iohook.h rename to hook/iohook.h diff --git a/event/hook/logger.h b/hook/logger.h similarity index 100% rename from event/hook/logger.h rename to hook/logger.h diff --git a/event/hook/logger_c.h b/hook/logger_c.h similarity index 100% rename from event/hook/logger_c.h rename to hook/logger_c.h diff --git a/event/hook/windows/event_c.h b/hook/windows/event_c.h similarity index 100% rename from event/hook/windows/event_c.h rename to hook/windows/event_c.h diff --git a/event/hook/windows/hook_c.h b/hook/windows/hook_c.h similarity index 100% rename from event/hook/windows/hook_c.h rename to hook/windows/hook_c.h diff --git a/event/hook/windows/input.h b/hook/windows/input.h similarity index 100% rename from event/hook/windows/input.h rename to hook/windows/input.h diff --git a/event/hook/windows/input_c.h b/hook/windows/input_c.h similarity index 100% rename from event/hook/windows/input_c.h rename to hook/windows/input_c.h diff --git a/event/hook/windows/properties_c.h b/hook/windows/properties_c.h similarity index 100% rename from event/hook/windows/properties_c.h rename to hook/windows/properties_c.h diff --git a/event/hook/x11/event_c.h b/hook/x11/event_c.h similarity index 100% rename from event/hook/x11/event_c.h rename to hook/x11/event_c.h diff --git a/event/hook/x11/hook_c.h b/hook/x11/hook_c.h similarity index 100% rename from event/hook/x11/hook_c.h rename to hook/x11/hook_c.h diff --git a/event/hook/x11/input.h b/hook/x11/input.h similarity index 100% rename from event/hook/x11/input.h rename to hook/x11/input.h diff --git a/event/hook/x11/input_c.h b/hook/x11/input_c.h similarity index 100% rename from event/hook/x11/input_c.h rename to hook/x11/input_c.h diff --git a/event/hook/x11/properties_c.h b/hook/x11/properties_c.h similarity index 100% rename from event/hook/x11/properties_c.h rename to hook/x11/properties_c.h diff --git a/test/main.go b/test/main.go index d2207ae..0fe8d28 100644 --- a/test/main.go +++ b/test/main.go @@ -2,6 +2,7 @@ package main import ( "fmt" + "go-vgo/robotn/gohook" )