From 309a8042a3a84476637ad9c0f6535a1d71369759 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Mon, 2 May 2022 18:40:08 -0700 Subject: web: move some stuff around --- web/web_prompt.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'web/web_prompt.c') 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()}); -- cgit v1.2.3-70-g09d2