DINPUT: allow the creation of an effect while unacquired
Daniel Remenak
dtremenak at gmail.com
Sat Sep 3 16:12:39 CDT 2005
Changelog:
- Allow the creation of an FF effect while the joystick is not acquired
- Failing to download an effect after setting parameters is not a fatal error
The FFConst sample and Viper Racing both attempt to create FF effects
before acquiring the joystick. This patch changes the effect object
to store a pointer to the parent's file descriptor rather than a copy
of it, so that when the joystick is acquired and unacquired the effect
is not left with a stale fd. It also makes SetParameters correctly
use the nonfatal DI_DOWNLOADSKIPPED code when a download fails, and
allows CreateEffect to succeed if the effect download failed (Start
will download it if necessary).
--Daniel Remenak
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ff-create-unacq.diff
Type: text/x-patch
Size: 2838 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050903/712dca01/ff-create-unacq.diff
More information about the wine-patches
mailing list