Update Doc

This commit is contained in:
vCaesar 2016-11-12 15:56:07 +08:00
parent 760c6af302
commit cddd083cea
4 changed files with 14 additions and 12 deletions

View File

@ -151,12 +151,12 @@ import (
)
func main() {
keve := robotgo.LEvent("k")
keve := robotgo.AddEvent("k")
if keve == 0 {
Println("you press...", "k")
}
mleft := robotgo.LEvent("mleft")
mleft := robotgo.AddEvent("mleft")
if mleft == 0 {
Println("you press...", "mouse left button")
}

View File

@ -148,12 +148,12 @@ import (
)
func main() {
keve := robotgo.LEvent("k")
keve := robotgo.AddEvent("k")
if keve == 0 {
Println("you press...", "k")
}
mleft := robotgo.LEvent("mleft")
mleft := robotgo.AddEvent("mleft")
if mleft == 0 {
Println("you press...", "mouse left button")
}

9
doc.md
View File

@ -40,7 +40,8 @@
##[Event](#Event)
#####[LEvent](#LEvent)
#####[LEvent](#LEvent)(Equivalent to AddEvent)
#####[AddEvent](#AddEvent)
##[Window](#Window)
This is a work in progress.
@ -339,7 +340,7 @@ robotgo.ScrollMouse(50, "down")
##<h2 id="Event">Event</h2>
###<h3 id="LEvent">.LEvent(string)</h3>
###<h3 id="AddEvent">.AddEvent(string)</h3>
Listening global event
@ -365,12 +366,12 @@ import (
)
func main() {
keve := robotgo.LEvent("k")
keve := robotgo.AddEvent("k")
if keve == 0 {
Println("you press...", "k")
}
mleft := robotgo.LEvent("mleft")
mleft := robotgo.AddEvent("mleft")
if mleft == 0 {
Println("you press...", "mouse left button")
}

View File

@ -40,7 +40,8 @@
##[事件](#Event)
#####[LEvent](#LEvent)
#####[LEvent](#LEvent)(相当于AddEvent)
#####[AddEvent](#AddEvent)
##[Window](#Window)
This is a work in progress.
@ -353,7 +354,7 @@ robotgo.ScrollMouse(50, "down")
```
##<h2 id="Event">事件</h2>
###<h3 id="LEvent">.LEvent(string)</h3>
###<h3 id="AddEvent">.AddEvent(string)</h3>
监听全局事件
@ -379,12 +380,12 @@ import (
)
func main() {
keve := robotgo.LEvent("k")
keve := robotgo.AddEvent("k")
if keve == 0 {
Println("you press...", "k")
}
mleft := robotgo.LEvent("mleft")
mleft := robotgo.AddEvent("mleft")
if mleft == 0 {
Println("you press...", "mouse left button")
}