summaryrefslogtreecommitdiffstats
path: root/input/input.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-05-05 20:41:45 +0200
committerwm4 <wm4@nowhere>2018-05-24 19:56:33 +0200
commit383da1bfd59fa77366d5e61612da4da8d4f1cf6c (patch)
treeced3f7a16158b8601560fadb6fc10d609b997758 /input/input.h
parentdc00566963b35c931a4cf489d4361daa8283697a (diff)
downloadmpv-383da1bfd59fa77366d5e61612da4da8d4f1cf6c.tar.bz2
mpv-383da1bfd59fa77366d5e61612da4da8d4f1cf6c.tar.xz
input: move an enum back to its correct place
This was accidentally moved together with the cmd stuff.
Diffstat (limited to 'input/input.h')
-rw-r--r--input/input.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/input/input.h b/input/input.h
index 6322eb88db..1641f9fad6 100644
--- a/input/input.h
+++ b/input/input.h
@@ -47,6 +47,19 @@ struct mp_input_src {
void *priv;
};
+enum mp_input_section_flags {
+ // If a key binding is not defined in the current section, do not search the
+ // other sections for it (like the default section). Instead, an unbound
+ // key warning will be printed.
+ MP_INPUT_EXCLUSIVE = 1,
+ // Prefer it to other sections.
+ MP_INPUT_ON_TOP = 2,
+ // Let mp_input_test_dragging() return true, even if inside the mouse area.
+ MP_INPUT_ALLOW_VO_DRAGGING = 4,
+ // Don't force mouse pointer visible, even if inside the mouse area.
+ MP_INPUT_ALLOW_HIDE_CURSOR = 8,
+};
+
// Add an input source that runs on a thread. The source is automatically
// removed if the thread loop exits.
// ctx: this is passed to loop_fn.