Add the -profile option

This commit is contained in:
Ivan Izaguirre 2019-10-19 19:56:51 +02:00
parent c65d8585d4
commit 6917a21f38

View File

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