diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-09-20 13:49:32 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-09-20 13:52:14 +0200 |
| commit | b8d3eff412c1c91fa09435238998ba1fc17df3fe (patch) | |
| tree | 3a4e19553f3afe230cc40c98477fa1be9be137a3 /src/keyboard/inc | |
| parent | 39dc70c38578d56dd4981e48fcb724ad51190d46 (diff) | |
| download | rts-b8d3eff412c1c91fa09435238998ba1fc17df3fe.tar.gz | |
keyboard: Add new public functions
These will be used by future commits.
Diffstat (limited to 'src/keyboard/inc')
| -rw-r--r-- | src/keyboard/inc/keyboard.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |
