diff options
Diffstat (limited to 'common/keyboard_scan.c')
-rw-r--r-- | common/keyboard_scan.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/common/keyboard_scan.c b/common/keyboard_scan.c index b57782ecc7..3b5db45903 100644 --- a/common/keyboard_scan.c +++ b/common/keyboard_scan.c @@ -138,7 +138,7 @@ static volatile int kbd_polls; /* If true, we'll force a keyboard poll */ static volatile int force_poll; -static int keyboard_scan_is_enabled(void) +test_export_static int keyboard_scan_is_enabled(void) { /* NOTE: this is just an instantaneous glimpse of the variable. */ return !disable_scanning_mask; @@ -1237,3 +1237,15 @@ static int command_keyboard_press(int argc, const char **argv) DECLARE_CONSOLE_COMMAND(kbpress, command_keyboard_press, "[col row [0 | 1]]", "Simulate keypress"); #endif + +#ifdef TEST_BUILD +__test_only int keyboard_scan_get_print_state_changes(void) +{ + return print_state_changes; +} + +__test_only void keyboard_scan_set_print_state_changes(int val) +{ + print_state_changes = val; +} +#endif /* TEST_BUILD */ |