input: modify interpretation of doubleclick events
commitb9eaafe1ed4f38efcd08d113d9e51e9ebb034f6e
authorUoti Urpala <uau@mplayer2.org>
Mon, 25 Apr 2011 11:12:04 +0000 (25 14:12 +0300)
committerUoti Urpala <uau@mplayer2.org>
Sun, 1 May 2011 21:44:21 +0000 (2 00:44 +0300)
treefd70a279e23af0e61b98f3bb66382005f18ca3c4
parent325926f9f87070615521747646c47012f1434e15
input: modify interpretation of doubleclick events

The code combining button presses into multibutton commands prevented
single click commands from triggering if a doubleclick event had been
generated from the same button press. As a result using the mouse
wheel to seek worked very badly. Special-case doubleclick events in
the event interpretation code to avoid this issue. This changes the
sequence of generated "keys" for press-release-press-release from
MOUSE_BTN0   MOUSE_BTN0-MOUSE_BTN0_DBL   MOUSE_BTN0_DBL   to
MOUSE_BTN0   MOUSE_BTN0_DBL              MOUSE_BTN0.
"Keys" like MOUSE_BTN0-MOUSE_BTN0_DBL will never be generated now; any
existing configuration files using those need to be changed.
DOCS/man/en/mplayer.1
input/input.c
mp_fifo.c