diff options
author | wm4 <wm4@nowhere> | 2012-08-24 13:29:28 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-08-24 14:30:25 +0200 |
commit | 27a8610c560b07b04ca3a4ee3ed0bdb8d1daa672 (patch) | |
tree | 964cd53e303a3747709a58196dccce8d57273b6e /parser-cfg.h | |
parent | 2adc81f0a2459a565437009ff6f4ace1dca3d46c (diff) | |
download | mpv-27a8610c560b07b04ca3a4ee3ed0bdb8d1daa672.tar.bz2 mpv-27a8610c560b07b04ca3a4ee3ed0bdb8d1daa672.tar.xz |
input: add ability to disable all default bindings for an input section
Add a flags parameter to mp_input_set_section(). Add a flag that defines
whether bindings in the default section are used or not. This is useful
for special functionality, where the normal key bindings may have
unwanted effects.
For example, it shouldn't be possible to seek during encoding. However,
you want to be able to cancel the encoding process gracefully. For that
purpose, the "encode" section of input.conf could be made exclusive:
mp_input_set_section(mpctx->input, "encode", MP_INPUT_NO_DEFAULT_SECTION);
And input.conf could contain this definition:
RIGHT seek 10
q {encode} quit
Then only the key "q" would be bound during encoding.
Diffstat (limited to 'parser-cfg.h')
0 files changed, 0 insertions, 0 deletions