From 2cc3a5d7cecae6f1c592ff7fb1f97297783ce386 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Tue, 4 Sep 2018 15:25:08 -0400 Subject: [PATCH] Update README.md and move code --- README.md | 20 +++++++++++++++++++- {event/hook => hook}/darwin/event_c.h | 0 {event/hook => hook}/darwin/hook_c.h | 0 {event/hook => hook}/darwin/input.h | 0 {event/hook => hook}/darwin/input_c.h | 0 {event/hook => hook}/darwin/properties_c.h | 0 {event/hook => hook}/iohook.h | 0 {event/hook => hook}/logger.h | 0 {event/hook => hook}/logger_c.h | 0 {event/hook => hook}/windows/event_c.h | 0 {event/hook => hook}/windows/hook_c.h | 0 {event/hook => hook}/windows/input.h | 0 {event/hook => hook}/windows/input_c.h | 0 {event/hook => hook}/windows/properties_c.h | 0 {event/hook => hook}/x11/event_c.h | 0 {event/hook => hook}/x11/hook_c.h | 0 {event/hook => hook}/x11/input.h | 0 {event/hook => hook}/x11/input_c.h | 0 {event/hook => hook}/x11/properties_c.h | 0 test/main.go | 1 + 20 files changed, 20 insertions(+), 1 deletion(-) rename {event/hook => hook}/darwin/event_c.h (100%) rename {event/hook => hook}/darwin/hook_c.h (100%) rename {event/hook => hook}/darwin/input.h (100%) rename {event/hook => hook}/darwin/input_c.h (100%) rename {event/hook => hook}/darwin/properties_c.h (100%) rename {event/hook => hook}/iohook.h (100%) rename {event/hook => hook}/logger.h (100%) rename {event/hook => hook}/logger_c.h (100%) rename {event/hook => hook}/windows/event_c.h (100%) rename {event/hook => hook}/windows/hook_c.h (100%) rename {event/hook => hook}/windows/input.h (100%) rename {event/hook => hook}/windows/input_c.h (100%) rename {event/hook => hook}/windows/properties_c.h (100%) rename {event/hook => hook}/x11/event_c.h (100%) rename {event/hook => hook}/x11/hook_c.h (100%) rename {event/hook => hook}/x11/input.h (100%) rename {event/hook => hook}/x11/input_c.h (100%) rename {event/hook => hook}/x11/properties_c.h (100%) 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" )