diff options
Diffstat (limited to 'input/input.c')
-rw-r--r-- | input/input.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/input/input.c b/input/input.c index 2da5353bfa..5f331310ab 100644 --- a/input/input.c +++ b/input/input.c @@ -146,6 +146,8 @@ static mp_cmd_t mp_cmds[] = { { MP_CMD_SET_PROPERTY, "set_property", 2, { {MP_CMD_ARG_STRING, {0}}, {MP_CMD_ARG_STRING, {0}}, {-1,{0}} } }, { MP_CMD_GET_PROPERTY, "get_property", 1, { {MP_CMD_ARG_STRING, {0}}, {-1,{0}} } }, + { MP_CMD_SEEK_CHAPTER, "seek_chapter", 1, { {MP_CMD_ARG_INT,{0}}, {MP_CMD_ARG_INT,{0}}, {-1,{0}} } }, + { 0, NULL, 0, {} } }; @@ -392,6 +394,9 @@ static mp_cmd_bind_t def_cmd_binds[] = { { { KEY_MUTE, 0 }, "mute" }, { { KEY_CLOSE_WIN, 0 }, "quit" }, + + { { '!', 0 }, "seek_chapter -1" }, + { { '@', 0 }, "seek_chapter 1" }, { { 0 }, NULL } }; |