[1/2] dinput: Do not close device upon Unacquire

Vitaliy Margolen wine-devel at kievinfo.com
Tue Jan 20 23:47:38 CST 2009


Vincent Pelletier wrote:
> This fixes force feedback effects in MS Flight Sim 2000: it releases the 
> device after uploading effects, reaquires it later and try to update effects. 
> This fails, because linux requires all access to be done from a single file 
> descriptor.
> 
> It doesn't feel right to open a device without ever closing it... But I could 
> not find any "dealloc" method.
> 
This patch is not correct. The device can get removed, opened by other
application, etc. You can't open it during the creating and keep it open all
that time.

The more correct way to do it would be to re-upload all the state changes on
acquire.

Vitaliy.



More information about the wine-devel mailing list