diff --git a/apple2/softSwitches2.go b/apple2/softSwitches2.go index e915852..8bad68d 100644 --- a/apple2/softSwitches2.go +++ b/apple2/softSwitches2.go @@ -93,8 +93,7 @@ func getSoftSwitch(ioFlag uint8, isSet bool) softSwitchR { } func getKeySoftSwitch(io *ioC0Page) uint8 { - strobed := (io.softSwitchesData[ioDataKeyboard] & (1 << 7)) == 0 - if strobed && io.keyboard != nil { + if io.keyboard != nil { if key, ok := io.keyboard.GetKey(); ok { io.softSwitchesData[ioDataKeyboard] = key + (1 << 7) } diff --git a/apple2sdl/sdlKeyboard.go b/apple2sdl/sdlKeyboard.go index 351521b..965042b 100644 --- a/apple2sdl/sdlKeyboard.go +++ b/apple2sdl/sdlKeyboard.go @@ -35,9 +35,8 @@ func (k *sdlKeyboard) putText(textEvent *sdl.TextInputEvent) { func (k *sdlKeyboard) putKey(keyEvent *sdl.KeyboardEvent) { /* To get keys as understood by the Apple2 hardware run: 10 A=PEEK(49152) - 20 B = A - 128 - 30 PRINT A, B - 40 GOTO 10 + 20 PRINT A, A - 128 + 30 GOTO 10 */ if keyEvent.Type != sdl.KEYDOWN { // Process only key pushes