Re: [1/2] dinput: Do not close device upon Unacquire
21 Jan
2009
21 Jan
'09
5:47 a.m.
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.
6172
Age (days ago)
6172
Last active (days ago)
0 comments
1 participants
participants (1)
-
Vitaliy Margolen