rename "unknown" to "unsupported"
This commit is contained in:
parent
f2e67640fe
commit
f9ab379abc
1 changed files with 2 additions and 2 deletions
4
main.go
4
main.go
|
|
@ -79,7 +79,7 @@ func processCommand(plugin Plugin, command string) error {
|
||||||
}
|
}
|
||||||
if command[0] == 'b' {
|
if command[0] == 'b' {
|
||||||
if x <= 0 || x > 3 {
|
if x <= 0 || x > 3 {
|
||||||
return errors.New("unknown pointer button")
|
return errors.New("unsupported pointer button")
|
||||||
}
|
}
|
||||||
b := true
|
b := true
|
||||||
if y == 0 {
|
if y == 0 {
|
||||||
|
|
@ -87,7 +87,7 @@ func processCommand(plugin Plugin, command string) error {
|
||||||
}
|
}
|
||||||
return plugin.PointerButton(uint(x), b)
|
return plugin.PointerButton(uint(x), b)
|
||||||
}
|
}
|
||||||
return errors.New("unknown command")
|
return errors.New("unsupported command")
|
||||||
}
|
}
|
||||||
|
|
||||||
type challenge struct {
|
type challenge struct {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue