summaryrefslogtreecommitdiffstats
path: root/input/input.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-20 23:41:01 +0100
committerwm4 <wm4@nowhere>2014-11-20 23:41:01 +0100
commit0a78a61d897918c1f013a3d7d308c5a3939c53cc (patch)
treefc84b79ed3160015ffddc1976637027b103bcadd /input/input.h
parenta1811211a29fff3e23f329d735ec72e3ae6dc6a5 (diff)
downloadmpv-0a78a61d897918c1f013a3d7d308c5a3939c53cc.tar.bz2
mpv-0a78a61d897918c1f013a3d7d308c5a3939c53cc.tar.xz
input: add a prefix to make any binding act on key repeat
The fact that it's a generic command prefix that is parsed even when using the client API is a bit unclean (because this flag makes sense for actual key-bindings only), but it's less code this way.
Diffstat (limited to 'input/input.h')
-rw-r--r--input/input.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/input/input.h b/input/input.h
index 8e6edcfa02..6da1f719c2 100644
--- a/input/input.h
+++ b/input/input.h
@@ -34,6 +34,7 @@ enum mp_cmd_flags {
MP_ON_OSD_BAR = 2, // force a bar, if applicable
MP_ON_OSD_MSG = 4, // force a message, if applicable
MP_EXPAND_PROPERTIES = 8, // expand strings as properties
+ MP_ALLOW_REPEAT = 16, // if used as keybinding, allow key repeat
MP_ON_OSD_FLAGS = MP_ON_OSD_NO | MP_ON_OSD_AUTO |
MP_ON_OSD_BAR | MP_ON_OSD_MSG,