History

input: move an enum back to its correct place

This was accidentally moved together with the cmd stuff.

wm4 committed 8 years ago

Commit 383da1b1 parent dc005662 files · +13 −13Browse files

Showing the changes to input (2 of 2 files). Show all

Unified · Split

2 files
  1. input/cmd.h +0 −13
  2. input/input.h +13 −0
input/cmd.h+0−13
@@ -57,19 +57,6 @@ enum mp_cmd_flags { · 56 unmodified lines
5757 MP_ON_OSD_BAR | MP_ON_OSD_MSG,
5858 };
5959
60−enum mp_input_section_flags {
61− // If a key binding is not defined in the current section, do not search the
62− // other sections for it (like the default section). Instead, an unbound
63− // key warning will be printed.
64− MP_INPUT_EXCLUSIVE = 1,
65− // Prefer it to other sections.
66− MP_INPUT_ON_TOP = 2,
67− // Let mp_input_test_dragging() return true, even if inside the mouse area.
68− MP_INPUT_ALLOW_VO_DRAGGING = 4,
69− // Don't force mouse pointer visible, even if inside the mouse area.
70− MP_INPUT_ALLOW_HIDE_CURSOR = 8,
71−};
72−
7360 // Arbitrary upper bound for sanity.
7461 #define MP_CMD_MAX_ARGS 100
7562
input/input.h+13−0
@@ -47,6 +47,19 @@ struct mp_input_src { · 46 unmodified lines
4747 void *priv;
4848 };
4949
50+enum mp_input_section_flags {
51+ // If a key binding is not defined in the current section, do not search the
52+ // other sections for it (like the default section). Instead, an unbound
53+ // key warning will be printed.
54+ MP_INPUT_EXCLUSIVE = 1,
55+ // Prefer it to other sections.
56+ MP_INPUT_ON_TOP = 2,
57+ // Let mp_input_test_dragging() return true, even if inside the mouse area.
58+ MP_INPUT_ALLOW_VO_DRAGGING = 4,
59+ // Don't force mouse pointer visible, even if inside the mouse area.
60+ MP_INPUT_ALLOW_HIDE_CURSOR = 8,
61+};
62+
5063 // Add an input source that runs on a thread. The source is automatically
5164 // removed if the thread loop exits.
5265 // ctx: this is passed to loop_fn.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t