diff options
author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-02 18:40:08 -0700 |
---|---|---|
committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2022-05-02 18:40:08 -0700 |
commit | 309a8042a3a84476637ad9c0f6535a1d71369759 (patch) | |
tree | 4b36e616ddb13a9d2f3d158c5692142d47527119 /web/web_prompt.c | |
parent | 237359d107c5f8fb3e1f7a3532696eb19a6c56fc (diff) | |
download | dartboat-309a8042a3a84476637ad9c0f6535a1d71369759.tar.gz dartboat-309a8042a3a84476637ad9c0f6535a1d71369759.tar.xz |
web: move some stuff around
Diffstat (limited to 'web/web_prompt.c')
-rw-r--r-- | web/web_prompt.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/web/web_prompt.c b/web/web_prompt.c index 7f65f6d..4a2b829 100644 --- a/web/web_prompt.c +++ b/web/web_prompt.c @@ -73,6 +73,21 @@ void prompt_select_mode() EM_ASM({promptMsgR($0)}, ""); } +bool is_key_active(char *k) +{ + return (EM_ASM_INT({return isKeyActive($0)}, k)); +} + +void toggle_key(char *k) +{ + EM_ASM({toggleKey($0)}, k); +} + +void deactivate_key(char *k) +{ + EM_ASM({deactivateKey($0)}, k); +} + char *prompt_get() { return (char *)EM_ASM_INT({return promptGet()}); |