Fixed mouse buttons

This commit is contained in:
Sasha Koshka 2022-11-14 23:17:10 -05:00
parent 1d71df180d
commit d9c9895e82

View File

@ -43,7 +43,7 @@ func (backend *Backend) handleButtonPress (
) { ) {
buttonEvent := *event.ButtonPressEvent buttonEvent := *event.ButtonPressEvent
backend.channel <- stone.EventPress { 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 buttonEvent := *event.ButtonReleaseEvent
backend.channel <- stone.EventRelease { backend.channel <- stone.EventRelease {
Button: stone.Button(buttonEvent.Detail), Button: stone.Button(buttonEvent.Detail + 127),
} }
} }