From 0a78a61d897918c1f013a3d7d308c5a3939c53cc Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 20 Nov 2014 23:41:01 +0100 Subject: 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. --- input/input.h | 1 + 1 file changed, 1 insertion(+) (limited to 'input/input.h') 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, -- cgit v1.2.3