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.