mirror of https://github.com/mpv-player/mpv
input: move an enum back to its correct place
This was accidentally moved together with the cmd stuff.
This commit is contained in:
parent
dc00566963
commit
383da1bfd5
13
input/cmd.h
13
input/cmd.h
|
@ -57,19 +57,6 @@ enum mp_cmd_flags {
|
||||||
MP_ON_OSD_BAR | MP_ON_OSD_MSG,
|
MP_ON_OSD_BAR | MP_ON_OSD_MSG,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum mp_input_section_flags {
|
|
||||||
// If a key binding is not defined in the current section, do not search the
|
|
||||||
// other sections for it (like the default section). Instead, an unbound
|
|
||||||
// key warning will be printed.
|
|
||||||
MP_INPUT_EXCLUSIVE = 1,
|
|
||||||
// Prefer it to other sections.
|
|
||||||
MP_INPUT_ON_TOP = 2,
|
|
||||||
// Let mp_input_test_dragging() return true, even if inside the mouse area.
|
|
||||||
MP_INPUT_ALLOW_VO_DRAGGING = 4,
|
|
||||||
// Don't force mouse pointer visible, even if inside the mouse area.
|
|
||||||
MP_INPUT_ALLOW_HIDE_CURSOR = 8,
|
|
||||||
};
|
|
||||||
|
|
||||||
// Arbitrary upper bound for sanity.
|
// Arbitrary upper bound for sanity.
|
||||||
#define MP_CMD_MAX_ARGS 100
|
#define MP_CMD_MAX_ARGS 100
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,19 @@ struct mp_input_src {
|
||||||
void *priv;
|
void *priv;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum mp_input_section_flags {
|
||||||
|
// If a key binding is not defined in the current section, do not search the
|
||||||
|
// other sections for it (like the default section). Instead, an unbound
|
||||||
|
// key warning will be printed.
|
||||||
|
MP_INPUT_EXCLUSIVE = 1,
|
||||||
|
// Prefer it to other sections.
|
||||||
|
MP_INPUT_ON_TOP = 2,
|
||||||
|
// Let mp_input_test_dragging() return true, even if inside the mouse area.
|
||||||
|
MP_INPUT_ALLOW_VO_DRAGGING = 4,
|
||||||
|
// Don't force mouse pointer visible, even if inside the mouse area.
|
||||||
|
MP_INPUT_ALLOW_HIDE_CURSOR = 8,
|
||||||
|
};
|
||||||
|
|
||||||
// Add an input source that runs on a thread. The source is automatically
|
// Add an input source that runs on a thread. The source is automatically
|
||||||
// removed if the thread loop exits.
|
// removed if the thread loop exits.
|
||||||
// ctx: this is passed to loop_fn.
|
// ctx: this is passed to loop_fn.
|
||||||
|
|
Loading…
Reference in New Issue