Changed how buttons are stored in press and release events

This commit is contained in:
2022-11-14 23:15:21 -05:00
parent b816a4abf5
commit 1d71df180d
4 changed files with 15 additions and 11 deletions

View File

@@ -38,7 +38,7 @@ func main () {
os.Exit(0)
case stone.EventPress:
button := stone.Button(event.(stone.EventPress))
button := event.(stone.EventPress).Button
if button.Printable() {
application.SetRune(caret, 0, rune(button))
caret ++