From d9c9895e82bf23f78e1c55f0d5e3f44791f0c45b Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Mon, 14 Nov 2022 23:17:10 -0500 Subject: [PATCH] Fixed mouse buttons --- backends/x/event.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backends/x/event.go b/backends/x/event.go index a3a8b8e..4195431 100644 --- a/backends/x/event.go +++ b/backends/x/event.go @@ -43,7 +43,7 @@ func (backend *Backend) handleButtonPress ( ) { buttonEvent := *event.ButtonPressEvent backend.channel <- stone.EventPress { - Button: stone.Button(buttonEvent.Detail), + Button: stone.Button(buttonEvent.Detail + 127), } } @@ -53,7 +53,7 @@ func (backend *Backend) handleButtonRelease ( ) { buttonEvent := *event.ButtonReleaseEvent backend.channel <- stone.EventRelease { - Button: stone.Button(buttonEvent.Detail), + Button: stone.Button(buttonEvent.Detail + 127), } }