diff options
author | Christoph Heinrich <christoph.heinrich@student.tugraz.at> | 2023-02-20 06:44:22 +0100 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-02-21 17:15:17 +0000 |
commit | 4ebfe9851c63c8aa55292c01f23fedd9313ed191 (patch) | |
tree | 348c38e97d60914450b3179ea61e39a30b27464e /input | |
parent | 91cc0d8cf6a2cf264c243ca3b3e99b5fd4044c29 (diff) | |
download | mpv-4ebfe9851c63c8aa55292c01f23fedd9313ed191.tar.bz2 mpv-4ebfe9851c63c8aa55292c01f23fedd9313ed191.tar.xz |
options: transition commands from OPT_FLAG to OPT_BOOL
Diffstat (limited to 'input')
-rw-r--r-- | input/cmd.h | 1 | ||||
-rw-r--r-- | input/input.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/input/cmd.h b/input/cmd.h index 3ed07e8028..1c9fb3e815 100644 --- a/input/cmd.h +++ b/input/cmd.h @@ -85,6 +85,7 @@ enum mp_cmd_flags { struct mp_cmd_arg { const struct m_option *type; union { + bool b; int i; int64_t i64; float f; diff --git a/input/input.c b/input/input.c index dec8d0235d..03f75e40b7 100644 --- a/input/input.c +++ b/input/input.c @@ -1474,6 +1474,7 @@ void mp_input_bind_key(struct input_ctx *ictx, int key, bstr command) .cmd = bstrdup0(bs->binds, command), .location = talloc_strdup(bs->binds, "keybind-command"), .owner = bs, + .is_builtin = false, .num_keys = 1, }; memcpy(bind->keys, &key, 1 * sizeof(bind->keys[0])); |