Add functionality to the top buttons, including Ctrl

This commit is contained in:
arturo182
2023-05-08 15:45:14 +02:00
parent c44f9546e3
commit 6966a62fdf
6 changed files with 35 additions and 19 deletions

View File

@@ -15,9 +15,9 @@
#define PICO_STDIO_USB_STDOUT_TIMEOUT_US 500000
static void key_cb(char key, enum key_state state)
static void key_cb(char key, enum key_state state, uint32_t mods)
{
printf("key: 0x%02X/%d/%c, state: %d\r\n", key, key, key, state);
printf("key: 0x%02X/%d/%c, state: %d, mods: 0x%08X\r\n", key, key, key, state, mods);
}
static struct key_callback key_callback = { .func = key_cb };