added CAPS LOCK key support on C128

This commit is contained in:
FeralChild64 committed 2019-10-18 19:11:30 +02:00
1 parent e9565c9724
commit 6e38c8a4b9
7 files changed
+76 -7

No files matched your search

+13
View File
@@ -115,6 +115,19 @@
// Check if keyboard options are correct
{
#if CONFIG_LEGACY_SCNKEY && CONFIG_KEYBOARD_C128
.error "CONFIG_LEGACY_SCNKEY and CONFIG_KEYBOARD_C128 are mutually exclusive"
#endif
#if CONFIG_KEYBOARD_C128_CAPS_LOCK && !CONFIG_KEYBOARD_C128
.error "CONFIG_KEYBOARD_C128_CAPS_LOCK requires CONFIG_KEYBOARD_C128"
#endif
}
// Handle processor configuration
#if CONFIG_CPU_WDC_65C02 || CONFIG_CPU_CSG_65CE02 || CONFIG_CPU_WDC_65816
+3 -2
View File
@@ -15,8 +15,9 @@
.const KEY_FLAG_SHIFT = %00000001
.const KEY_FLAG_VENDOR = %00000010
.const KEY_FLAG_CTRL = %00000100
.const KEY_FLAG_ALT = %00001000 // C65 / C128 XXX implement this
.const KEY_FLAG_NO_SCRL = %00100000 // C65 / C128, Open ROMs unofficial XXX implement this
.const KEY_FLAG_ALT = %00001000 // C65 / C128
.const KEY_CAPS_LOCK = %00010000 // C65 / C128
.const KEY_FLAG_NO_SCRL = %00100000 // C65 / C128, Open ROMs unofficial
// Note - the following PETSCII codes are currently unassigned, can be used for further extensions: