summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
Diffstat (limited to 'input')
-rw-r--r--input/input.c8
-rw-r--r--input/input.h6
2 files changed, 12 insertions, 2 deletions
diff --git a/input/input.c b/input/input.c
index a1ab808125..3cae41bfff 100644
--- a/input/input.c
+++ b/input/input.c
@@ -852,6 +852,14 @@ mp_cmd_t *mp_input_parse_cmd(bstr str)
if (eat_token(&str, "no-osd")) {
on_osd = MP_ON_OSD_NO;
+ } else if (eat_token(&str, "osd-bar")) {
+ on_osd = MP_ON_OSD_BAR;
+ } else if (eat_token(&str, "osd-msg")) {
+ on_osd = MP_ON_OSD_MSG;
+ } else if (eat_token(&str, "osd-msg-bar")) {
+ on_osd = MP_ON_OSD_MSG | MP_ON_OSD_BAR;
+ } else if (eat_token(&str, "osd-auto")) {
+ // default
}
int cmd_idx = 0;
diff --git a/input/input.h b/input/input.h
index e4eb0a8d32..a523020f43 100644
--- a/input/input.h
+++ b/input/input.h
@@ -97,8 +97,10 @@ enum mp_command_type {
#define MP_INPUT_RELEASE_ALL -5
enum mp_on_osd {
- MP_ON_OSD_NO = 0,
- MP_ON_OSD_AUTO,
+ MP_ON_OSD_NO = 0, // prefer not using OSD
+ MP_ON_OSD_AUTO = 1, // use default behavior of the specific command
+ MP_ON_OSD_BAR = 2, // force a bar, if applicable
+ MP_ON_OSD_MSG = 4, // force a message, if applicable
};
enum mp_input_section_flags {