From 0eac4f2c6a497322217354e4f81591d519c7c433 Mon Sep 17 00:00:00 2001 From: Marc Date: Tue, 27 May 2025 10:33:22 +0200 Subject: [PATCH] io/pointer: add forth and fifth buttons Signed-off-by: Marc Signed-off-by: Elias Naur --- io/pointer/pointer.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/io/pointer/pointer.go b/io/pointer/pointer.go index 9e389dea..eeba203b 100644 --- a/io/pointer/pointer.go +++ b/io/pointer/pointer.go @@ -219,6 +219,12 @@ const ( ButtonSecondary // ButtonTertiary is the tertiary button, usually the middle button. ButtonTertiary + // ButtonQuaternary is the fourth button, usually used for browser + // navigation (back) + ButtonQuaternary + // ButtonQuinary is the fifth button, usually used for browser + // navigation (forward) + ButtonQuinary ) func (s ScrollRange) Union(s2 ScrollRange) ScrollRange { @@ -326,6 +332,12 @@ func (b Buttons) String() string { if b.Contain(ButtonTertiary) { strs = append(strs, "ButtonTertiary") } + if b.Contain(ButtonQuaternary) { + strs = append(strs, "ButtonQuaternary") + } + if b.Contain(ButtonQuinary) { + strs = append(strs, "ButtonQuinary") + } return strings.Join(strs, "|") }