Changed how buttons are stored in press and release events
This commit is contained in:
@@ -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 ++
|
||||
|
||||
Reference in New Issue
Block a user