summaryrefslogtreecommitdiffstats
path: root/mpvcore/input/input.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-11-06 00:05:12 +0100
committerwm4 <wm4@nowhere>2013-11-06 00:05:12 +0100
commit9dc0dfbd54349672c5948f323f8490b91d4b3a62 (patch)
treefbfe38553965b48c91bf6c988302087f6eaa99ba /mpvcore/input/input.h
parent01d12a51f1d70bd3823db7062c0138c3b7e920b3 (diff)
downloadmpv-9dc0dfbd54349672c5948f323f8490b91d4b3a62.tar.bz2
mpv-9dc0dfbd54349672c5948f323f8490b91d4b3a62.tar.xz
input: disallow autorepeat by default for most commands
This drops autorepeated key events for a number of commands. This should help with slow situations accidentally triggering too many repeats. (I'm not sure if this actually happened to users - maybe.) It's not clear whether MP_CMD_COMMAND_LIST (multiple commands on one binding separated by ';') should be repeated, or whether it should try to do something clever. For now, disallow autorepeat with it.
Diffstat (limited to 'mpvcore/input/input.h')
-rw-r--r--mpvcore/input/input.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/mpvcore/input/input.h b/mpvcore/input/input.h
index 8ea1070f8b..160abfb50e 100644
--- a/mpvcore/input/input.h
+++ b/mpvcore/input/input.h
@@ -158,7 +158,8 @@ typedef struct mp_cmd {
bool mouse_move;
int mouse_x, mouse_y;
struct mp_cmd *queue_next;
- double scale; // for scaling numeric arguments
+ double scale; // for scaling numeric arguments
+ bool allow_auto_repeat; // used in command specification
} mp_cmd_t;