diff options
author | wm4 <wm4@nowhere> | 2012-12-02 01:57:48 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-12-03 21:08:52 +0100 |
commit | 2f14134a30d266e0a3f9dbb9c8eeeb082b45f3c5 (patch) | |
tree | 0911962bb80ca1d93cf507bd30705968a45ad4aa | |
parent | 01584151c8d04c26a54bc1c75a3ea8a7828a7396 (diff) | |
download | mpv-2f14134a30d266e0a3f9dbb9c8eeeb082b45f3c5.tar.bz2 mpv-2f14134a30d266e0a3f9dbb9c8eeeb082b45f3c5.tar.xz |
input: do not generate double clicks for mouse wheel
Button 3 and 4 are mapped to the mouse wheel. Double click events for
them annoying and not useful at all.
I don't know about buttons 5-19; for all I know these could be mapped
to wheels as well. Even if not, double click events are probably not
very important for these. Disable double clicks for these as well.
-rw-r--r-- | core/mp_fifo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/mp_fifo.c b/core/mp_fifo.c index fd8a87098e..f8410516d8 100644 --- a/core/mp_fifo.c +++ b/core/mp_fifo.c @@ -44,7 +44,7 @@ struct mp_fifo *mp_fifo_create(struct input_ctx *input, struct MPOpts *opts) static void put_double(struct mp_fifo *fifo, int code) { - if (code >= MOUSE_BTN0 && code < MOUSE_BTN_END) + if (code >= MOUSE_BTN0 && code <= MOUSE_BTN2) mp_input_feed_key(fifo->input, code - MOUSE_BTN0 + MOUSE_BTN0_DBL); } |