summaryrefslogtreecommitdiffstats
path: root/input/cmd.h
diff options
context:
space:
mode:
Diffstat (limited to 'input/cmd.h')
-rw-r--r--input/cmd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/input/cmd.h b/input/cmd.h
index 3d4b15fcc3..14c785a22a 100644
--- a/input/cmd.h
+++ b/input/cmd.h
@@ -75,6 +75,8 @@ enum mp_cmd_flags {
MP_ASYNC_CMD = 32, // do not wait for command to complete
MP_SYNC_CMD = 64, // block on command completion
+ MP_DISALLOW_REPEAT = 128, // if used as keybinding, disallow key repeat
+
MP_ON_OSD_FLAGS = MP_ON_OSD_NO | MP_ON_OSD_AUTO |
MP_ON_OSD_BAR | MP_ON_OSD_MSG,
};
@@ -110,6 +112,7 @@ typedef struct mp_cmd {
bool is_mouse_button : 1;
bool repeated : 1;
bool mouse_move : 1;
+ bool canceled : 1;
int mouse_x, mouse_y;
struct mp_cmd *queue_next;
double scale; // for scaling numeric arguments