restored some parts of the new keyboard scanner

This commit is contained in:
FeralChild64 committed 2020-11-29 10:52:43 +01:00
1 parent 05dbeea181
commit 71f027cdfb
4 files changed
+69 -83

No files matched your search

+6 -1
View File
@@ -78,10 +78,15 @@ kb_matrix_bucky_shflag: ; mask to be ORed to SHFLAG to mark key status
!byte KEY_FLAG_SHIFT
!byte KEY_FLAG_VENDOR
!byte KEY_FLAG_CTRL
!ifdef CONFIG_KEYBOARD_C128_OR_C65 {
!ifdef CONFIG_MB_M65 {
!byte KEY_FLAG_ALT
!byte KEY_FLAG_NO_SCRL
!byte KEY_FLAG_CAPSL
} else ifdef CONFIG_KEYBOARD_C128_OR_C65 {
!byte KEY_FLAG_ALT
!byte KEY_FLAG_NO_SCRL
}
} ; no CONFIG_LEGACY_SCNKEY
+7 -4
View File
@@ -61,10 +61,6 @@ scnkey_valid_offset_cont:
; FALLTROUGH
} ; no CONFIG_LEGACY_SCNKEY
scnkey_toggle_if_needed: ; entry for SCNKEY (TWW/CTR version)
; Check if we should toggle the character set
@@ -84,8 +80,10 @@ scnkey_toggle_if_needed: ; entry for SCNKEY (TWW/CTR version)
!ifdef CONFIG_MB_M65 {
!ifndef HOTFIX_CHARPTR {
jsr M65_MODEGET
bcc @2
}
; Toggling charsets for C64 mode
@@ -95,12 +93,15 @@ scnkey_toggle_if_needed: ; entry for SCNKEY (TWW/CTR version)
@1:
rts
!ifndef HOTFIX_CHARPTR {
; Toggling charsets for M65 mode
@2:
lda VIC_CHARPTR+1
eor #%00001000
sta VIC_CHARPTR+1
rts
}
} else {
@@ -111,3 +112,5 @@ scnkey_toggle_if_needed: ; entry for SCNKEY (TWW/CTR version)
rts
}
} ; no CONFIG_LEGACY_SCNKEY