Add the -profile option

This commit is contained in:
Ivan Izaguirre 2019-10-19 19:56:51 +02:00
parent c65d8585d4
commit 6917a21f38
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ func SDLRun(a *apple2.Apple2) {
for event := sdl.PollEvent(); event != nil; event = sdl.PollEvent() {
switch t := event.(type) {
case *sdl.QuitEvent:
a.SendCommand(apple2.CommandKill)
running = false
case *sdl.KeyboardEvent:
//fmt.Printf("[%d ms] Keyboard\ttype:%d\tsym:%c\tmodifiers:%d\tstate:%d\trepeat:%d\n",