diff options
Diffstat (limited to 'include/keyboard_protocol.h')
-rw-r--r-- | include/keyboard_protocol.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/keyboard_protocol.h b/include/keyboard_protocol.h index 866c58807b..6fc0a06f7c 100644 --- a/include/keyboard_protocol.h +++ b/include/keyboard_protocol.h @@ -9,6 +9,7 @@ #define __CROS_EC_KEYBOARD_PROTOCOL_H #include "common.h" +#include "button.h" /* Routines common to all protocols */ @@ -17,6 +18,15 @@ */ void keyboard_clear_buffer(void); +/* + * Respond to button changes. Implemented by a host-specific + * handler. + * + * @param button The button that changed. + * @param is_pressed Whether the button is now pressed. + */ +void keyboard_update_button(enum keyboard_button_type button, int is_pressed); + /* Protocol-specific includes */ #ifdef CONFIG_KEYBOARD_PROTOCOL_8042 |