Fixed bug relating to alt key
This commit is contained in:
parent
13d8486370
commit
3c2cf76df2
2
main.go
2
main.go
@ -31,6 +31,7 @@ func main () {
|
|||||||
application.OnStart(onStart)
|
application.OnStart(onStart)
|
||||||
application.OnResize(redraw)
|
application.OnResize(redraw)
|
||||||
application.OnPress(onPress)
|
application.OnPress(onPress)
|
||||||
|
application.OnRelease(onRelease)
|
||||||
|
|
||||||
err = application.Run()
|
err = application.Run()
|
||||||
if err != nil { panic(err) }
|
if err != nil { panic(err) }
|
||||||
@ -217,6 +218,7 @@ func onRelease (button stone.Button) {
|
|||||||
switch button {
|
switch button {
|
||||||
case stone.KeyLeftAlt, stone.KeyRightAlt:
|
case stone.KeyLeftAlt, stone.KeyRightAlt:
|
||||||
inputState.alt = false
|
inputState.alt = false
|
||||||
|
println("alt up")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user