mirror of
https://github.com/osiweb/unified_retro_keyboard.git
synced 2024-12-28 12:32:13 +00:00
Apple2 u/l keyboard has CAPS by default.
Start LED off, and turn on by activating CAPS
This commit is contained in:
parent
7ce550257c
commit
68086cde31
@ -63,9 +63,6 @@ void setup_apple2_keymap(void)
|
||||
asdf_hook_assign(APPLESOFT_KEYBOARD_TEST, applesoft_keyboard_test);
|
||||
asdf_hook_assign(APPLE2_ID_MESSAGE, apple2_id_message);
|
||||
|
||||
asdf_virtual_init();
|
||||
|
||||
|
||||
// Attach the physical POWER LED as the CAPS LED. Assign no triggered
|
||||
// function, and initialize to initial state of the CAPS logic. The CAPS LED
|
||||
// will be controlled by the state of the CAPSLOCK logic.
|
||||
@ -80,6 +77,8 @@ void setup_apple2_keymap(void)
|
||||
|
||||
// assign the CLRSCR output to the virtual CLRSCR output, configure to produce a long pulse when activated
|
||||
asdf_virtual_assign(APPLE_VIRTUAL_CLR_SCR, APPLE_CLR_SCR_OUTPUT, V_PULSE_LONG, !APPLE_CLR_SCR_ACTIVE_VALUE);
|
||||
|
||||
asdf_modifier_capslock_activate(); // For Apple 2, start with CAPS active
|
||||
}
|
||||
|
||||
|
||||
|
@ -49,7 +49,7 @@
|
||||
|
||||
#define APPLE_VIRTUAL_POWER_LED VLED1
|
||||
#define APPLE_POWER_LED PHYSICAL_LED1
|
||||
#define APPLE_POWER_LED_INIT_VALUE 1
|
||||
#define APPLE_POWER_LED_INIT_VALUE 0 // Toggles when caps lock is activated
|
||||
|
||||
#define APPLE_VIRTUAL_DISABLED_LED VLED2
|
||||
#define APPLE_DISABLED_LED PHYSICAL_LED3
|
||||
|
Loading…
Reference in New Issue
Block a user