Patch: Double-click support

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

 




This patch adds support for double clicking in Wine.  The added function,
_is_dblclick(), is invoked with each button-down mouse event.  The event
must be the same button (left, middle, or right), at the same X,Y position,
and occur within 500 milliseconds from the previous event.  The original
button-down event is still invoked regardless of the double-click.  Tested
in Starcraft.  :)

Ideally, we may eventually want to determine the double-click delay time
from the registry, as it is a configurable Windows setting.  But this should
serve the purpose in the mean time.

One last tidbit of info - I did not add a function prototype to any header
files given the limited scope of this function.  Whether this deviates from
the Wine Development Standard (tm), I do not know.  Perhaps a local
prototype is more suitable in this case for the sake of ANSI-C compliance.
I would appreciate knowing, at least, what the preferred method of
prototyping is.


ChangeLog: Adds support for double-click events via _is_dblclick().


        =Michael C. Maggio
         http://www.voyd.net/

Attachment: dblclick.diff
Description: Binary data


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux