Fixed bug relating to alt key

This commit is contained in:
Sasha Koshka 2022-11-21 18:39:33 -05:00
parent 13d8486370
commit 3c2cf76df2
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,7 @@ func main () {
application.OnStart(onStart)
application.OnResize(redraw)
application.OnPress(onPress)
application.OnRelease(onRelease)
err = application.Run()
if err != nil { panic(err) }
@ -217,6 +218,7 @@ func onRelease (button stone.Button) {
switch button {
case stone.KeyLeftAlt, stone.KeyRightAlt:
inputState.alt = false
println("alt up")
}
}