Patch: Double-click support

Michael C. Maggio voyager at voyd.net
Tue Jan 15 00:27:00 CST 2002


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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dblclick.diff
Type: application/octet-stream
Size: 2599 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20020115/a1577385/dblclick.obj


More information about the wine-patches mailing list