Fixed mouse buttons
This commit is contained in:
parent
1d71df180d
commit
d9c9895e82
@ -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),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user