mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-05-04 22:17:39 +08:00
Merge pull request #323 from radovskyb/patch-1
fixed undefined method error
This commit is contained in:
commit
589af6f44c
@ -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