diff options
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()}); |