mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-05-09 19:29:27 +08:00
fixed undefined method errors
This commit is contained in:
parent
8f4320a439
commit
04275a0992
@ -24,7 +24,7 @@ Example:
|
||||
keys := keyboard.NewDriver()
|
||||
|
||||
work := func() {
|
||||
gobot.On(keys.Event("key"), func(data interface{}) {
|
||||
keys.On(keys.Event("key"), func(data interface{}) {
|
||||
key := data.(keyboard.KeyEvent)
|
||||
|
||||
if key.Key == keyboard.A {
|
||||
|
Loading…
x
Reference in New Issue
Block a user