[MPlayer-users] mplayer MOUSE_BTNs on ButtonRelease

Reimar Döffinger Reimar.Doeffinger at gmx.de
Mon Apr 19 18:59:02 CEST 2010


On Mon, Apr 19, 2010 at 10:39:28AM -0400, Dennis Nezic wrote:
> Why do mplayer's MOUSE_BTNs respond to ButtonReleases, and not
> ButtonPresses?

Neither is clearly right or wrong, and acting on releases means
you could in theory detect and filter out drag operations, as well
as allowing "combinations" like left+right mouse button to do something
completely different from what they do individually.
However there is the MP_KEY_DOWN flag that indicates which is which
and both are passed to the input layer, so support for handling things
differently could be added, if someone is interested enough to do it.


More information about the MPlayer-users mailing list