mirror of
https://github.com/osiweb/unified_retro_keyboard.git
synced 2024-05-28 09:41:30 +00:00
Add ace1000_keyboard_test() for completeness.
This commit is contained in:
parent
6b14e3ef6d
commit
5aef9cb244
|
@ -62,7 +62,7 @@ void setup_ace1000_keymap(void)
|
|||
ace1000_add_map(ACE1000_CTRL_MAP, MOD_CTRL_MAP);
|
||||
|
||||
asdf_hook_assign(ACE1000_ID_MESSAGE_HOOK, ace1000_id_message);
|
||||
asdf_hook_assign(APPLESOFT_KEYBOARD_TEST_HOOK, applesoft_keyboard_test);
|
||||
asdf_hook_assign(APPLESOFT_KEYBOARD_TEST_HOOK, ace1000_keyboard_test);
|
||||
|
||||
// Assign power LED to virtual power LED, and initialize to ON
|
||||
asdf_virtual_assign(ACE1000_VIRTUAL_POWER_LED, ACE1000_POWER_LED, V_NOFUNC, ACE1000_POWER_LED_INIT_VALUE);
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
#include "asdf_arch.h"
|
||||
#include "asdf.h"
|
||||
#include "asdf_ascii.h"
|
||||
#include "asdf_print.h"
|
||||
#include "asdf_keymaps.h"
|
||||
#include "asdf_keymap_ace1000.h"
|
||||
#include "asdf_keymap_ace1000_add_map.h"
|
||||
|
@ -108,6 +109,12 @@ static const ace1000_keycode_matrix_t *ace1000_maps[] = {
|
|||
(uint8_t) ACE1000_NUM_COLS);
|
||||
}
|
||||
|
||||
void ace1000_keyboard_test(void)
|
||||
{
|
||||
asdf_print("10GETA$(0):A=ASC(A$(0)):A$(1)=\"CTL+\"+CHR$(A + 64):?\"'\";A$(A<32);\"' = \";A:IFA<>3GOTO10\r");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//-------|---------|---------+---------+---------+---------+---------+---------+
|
||||
|
|
|
@ -38,7 +38,9 @@ typedef enum {
|
|||
|
||||
// function prototypes
|
||||
void ace1000_add_map(const ace1000_map_index_t map_index, modifier_index_t modifier_index);
|
||||
void ace1000_keyboard_test(void);
|
||||
|
||||
// Key value definitions
|
||||
#define ACE_KEY_0 0x30
|
||||
#define ACE_KEY_1 0x31
|
||||
#define ACE_KEY_2 0x32
|
||||
|
|
Loading…
Reference in New Issue
Block a user