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 | a01b22de747de67adfaa1e8ba221c94588963163 (patch) | |
| tree | 06f594aca9730998eed38c6e0dd7059b1d95731c /src/keyboard/inc | |
| parent | ee37be47b9be42fac8e7a23ba48df1d074004426 (diff) | |
| download | jancity-a01b22de747de67adfaa1e8ba221c94588963163.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 |
