mplayer MOUSE_BTNs on ButtonRelease

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]<

 



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.


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux