aboutsummaryrefslogtreecommitdiff
path: root/input.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-03-12 16:26:02 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-03-12 16:26:02 +0000
commit47fa91e02bd3ed9a4d9d988f1c05c1662a4991ba (patch)
tree5300d4dd013e2fec43ee2dad809a8eb57108cde5 /input.h
parentquirks: weston_csd_{on,off}: don't do anything in fullscreen mode (diff)
parentdoc/foot.5: mention that *all* actions can be used in mouse bindings (diff)
Merge branch 'bindings'
Diffstat (limited to 'input.h')
-rw-r--r--input.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/input.h b/input.h
index 2483389a..9c274964 100644
--- a/input.h
+++ b/input.h
@@ -1,5 +1,6 @@
#pragma once
+#include <stdint.h>
#include <wayland-client.h>
#include "wayland.h"
@@ -8,3 +9,10 @@ extern const struct wl_keyboard_listener keyboard_listener;
extern const struct wl_pointer_listener pointer_listener;
void input_repeat(struct wayland *wayl, uint32_t key);
+
+bool input_parse_key_binding_for_action(
+ struct xkb_keymap *keymap, enum binding_action action,
+ const char *combos, key_binding_list_t *bindings);
+
+void input_execute_binding(
+ struct terminal *term, enum binding_action action, uint32_t serial);