[PATCH 1/9] dinput: Move acquired flag to the base device class.

Peter Oberndorfer kumbayo84 at arcor.de
Fri Dec 1 04:39:31 CST 2006


On Friday 01 December 2006 07:23, Vitaliy Margolen wrote:
> Sorry ignore my previous patches. I didn't send them in the proper order.
> 
> ---
>  dlls/dinput/device.c         |   28 ++++++++++++++++++++++++++++
>  dlls/dinput/device_private.h |    3 +++
>  dlls/dinput/joystick_linux.c |   23 ++++++++---------------
>  dlls/dinput/keyboard.c       |   36 ++++++++++++++++--------------------
>  dlls/dinput/mouse.c          |   23 ++++++++---------------
>  5 files changed, 63 insertions(+), 50 deletions(-)
> 
Hi,
some questions/notices about this patch:

Previously when the device was not acquired inside JoystickAImpl_Unacquire DIERR_NOTACQUIRED was returned.
now you call IDirectInputDevice2AImpl_Unacquire, which returns DI_NOEFFECT when not acquired.
but DI_NOEFFECT does not have high bit set so it won't trigger the FAILED macro.
Do you know if the Acquire/Unacquire functions return value the same for all device types?
In JoystickAImpl_Acquire you don't use your new IDirectInputDevice2AImpl_Acquire function but set This->base.acquired = 1;
Is there a reason for this?
In SysKeyboardAImpl_Unacquire you seem to call IDirectInputDevice2AImpl_Acquire?

Greetings Peter



More information about the wine-devel mailing list