summaryrefslogtreecommitdiff
path: root/web/web_prompt.c
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-02 18:40:08 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-02 18:40:08 -0700
commit309a8042a3a84476637ad9c0f6535a1d71369759 (patch)
tree4b36e616ddb13a9d2f3d158c5692142d47527119 /web/web_prompt.c
parent237359d107c5f8fb3e1f7a3532696eb19a6c56fc (diff)
downloaddartboat-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.c15
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()});