Include missing rune, key or button in error
This commit is contained in:
parent
6f03281fc7
commit
124152f7ec
4 changed files with 10 additions and 9 deletions
|
|
@ -245,7 +245,7 @@ func (p *portalController) PointerButton(button PointerButton, press bool) error
|
|||
case PointerButtonRight:
|
||||
btn = btnRight
|
||||
default:
|
||||
return errors.New("unsupported pointer button")
|
||||
return fmt.Errorf("unsupported pointer button: %#v", button)
|
||||
}
|
||||
state := btnReleased
|
||||
if press {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue