Include missing rune, key or button in error

This commit is contained in:
Unrud 2023-02-23 01:09:04 +01:00
parent 6f03281fc7
commit 124152f7ec
4 changed files with 10 additions and 9 deletions

View file

@ -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 {