started work on C128 keyboard support

This commit is contained in:
FeralChild64 committed 2019-10-15 19:33:55 +02:00
1 parent 8829ec8090
commit ed83a76725
6 files changed
+58 -12

No files matched your search

+31
View File
@@ -16,6 +16,28 @@ kb_matrix_bucky_confmask: // values to be written to CIA1_PRA
.byte %10111111 // SHIFT (right)
.byte %01111111 // VENDOR
.byte %01111111 // CTRL
#if CONFIG_KEYBOARD_C128
.byte %11111111 // C128 extra keys
.byte %11111111
#endif
__kb_matrix_bucky_confmask_end:
#if CONFIG_KEYBOARD_C128
kb_matrix_bucky_confmask_c128: // values to be written to VIC_XSCAN
.byte %11111111
.byte %11111111
.byte %11111111
.byte %11111111
.byte %11111011 // ALT
.byte %11111011 // NO_SCRL
#endif
kb_matrix_bucky_testmask: // for AND with CIA1_PRB value
@@ -24,13 +46,22 @@ kb_matrix_bucky_testmask: // for AND with CIA1_PRB value
.byte %00010000 // SHIFT (right)
.byte %00100000 // VENDOR
.byte %00000100 // CTRL
#if CONFIG_KEYBOARD_C128
.byte %10000000 // ALT
.byte %00000001 // NO_SCRL
#endif
kb_matrix_bucky_shflag: // mask to be ORed to SHFLAG to mark key status
.byte KEY_FLAG_SHIFT
.byte KEY_FLAG_SHIFT
.byte KEY_FLAG_VENDOR
.byte KEY_FLAG_CTRL
#if CONFIG_KEYBOARD_C128
.byte KEY_FLAG_ALT
.byte KEY_FLAG_NO_SCRL
#endif
#endif // no CONFIG_LEGACY_SCNKEY