x-backend #2
@ -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),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user