mirror of
https://github.com/osiweb/unified_retro_keyboard.git
synced 2024-11-21 13:31:36 +00:00
Add character test to apple keymap
This commit is contained in:
parent
573d6f842b
commit
8c8e021061
@ -48,10 +48,16 @@
|
||||
// COMPLEXITY:
|
||||
//
|
||||
|
||||
void apple2_id_message(void) {
|
||||
void apple2_id_message(void)
|
||||
{
|
||||
asdf_print("[Keymap: Apple 2 (u/l case)]");
|
||||
}
|
||||
|
||||
void apple2_print_characters(void)
|
||||
{
|
||||
asdf_keymap_print_characters();
|
||||
}
|
||||
|
||||
void setup_apple2_keymap(void)
|
||||
{
|
||||
asdf_set_print_delay(APPLE2_PRINT_DELAY);
|
||||
@ -64,7 +70,7 @@ void setup_apple2_keymap(void)
|
||||
|
||||
asdf_hook_assign(APPLESOFT_KEYBOARD_TEST, applesoft_keyboard_test);
|
||||
asdf_hook_assign(APPLE2_ID_MESSAGE, apple2_id_message);
|
||||
asdf_hook_assign(APPLE2_ASCII_TEST, asdf_keymap_print_characters);
|
||||
asdf_hook_assign(APPLE2_ASCII_TEST, apple2_print_characters);
|
||||
|
||||
// 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
|
||||
|
@ -43,7 +43,7 @@
|
||||
|
||||
#define APPLESOFT_KEYBOARD_TEST ASDF_HOOK_USER_3
|
||||
#define APPLE2_ID_MESSAGE ASDF_HOOK_USER_4
|
||||
#define APPLE2_ASCII_TEST ASDF_HOOK_USER_5
|
||||
#define APPLE2_ASCII_TEST ASDF_HOOK_USER_11
|
||||
|
||||
#define APPLE2_PRINT_DELAY 40 // msec
|
||||
|
||||
|
@ -31,6 +31,7 @@
|
||||
[1] = ACTION_MAPSEL_1, \
|
||||
[2] = ACTION_MAPSEL_2, \
|
||||
[3] = ACTION_MAPSEL_3, \
|
||||
[5] = ACTION_FN_11, \
|
||||
[6] = ACTION_STROBE_POLARITY_SELECT, \
|
||||
[7] = ACTION_AUTOREPEAT_SELECT, \
|
||||
}
|
||||
|
@ -85,6 +85,7 @@ typedef enum {
|
||||
ACTION_FN_8,
|
||||
ACTION_FN_9,
|
||||
ACTION_FN_10,
|
||||
ACTION_FN_11,
|
||||
RESERVED_1,
|
||||
RESERVED_2,
|
||||
RESERVED_3,
|
||||
|
@ -42,6 +42,7 @@ typedef enum {
|
||||
ASDF_HOOK_USER_8,
|
||||
ASDF_HOOK_USER_9,
|
||||
ASDF_HOOK_USER_10,
|
||||
ASDF_HOOK_USER_11,
|
||||
ASDF_NUM_HOOKS,
|
||||
} asdf_hook_id_t;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user