From b8d3eff412c1c91fa09435238998ba1fc17df3fe Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Tue, 20 Sep 2022 13:49:32 +0200 Subject: keyboard: Add new public functions These will be used by future commits. --- src/keyboard/inc/keyboard.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/keyboard/inc') diff --git a/src/keyboard/inc/keyboard.h b/src/keyboard/inc/keyboard.h index 5c53ba8..0fb0179 100644 --- a/src/keyboard/inc/keyboard.h +++ b/src/keyboard/inc/keyboard.h @@ -29,6 +29,9 @@ void keyboard_update(struct keyboard *k); bool keyboard_justpressed(const struct keyboard *k, const struct keyboard_combo *c); bool keyboard_pressed(const struct keyboard *k, const struct keyboard_combo *c); bool keyboard_justreleased(const struct keyboard *k, const struct keyboard_combo *c); +bool keyboard_any_justpressed(const struct keyboard *k, struct keyboard_combo *c); +bool keyboard_any_pressed(const struct keyboard *k, struct keyboard_combo *c); +char keyboard_to_char(const struct keyboard *k, enum keyboard_key key); const char *keyboard_key_str(enum keyboard_key k); #ifdef __cplusplus -- cgit v1.2.3