[dinput 4/5] Add a config for the axes
Vitaliy Margolen
wine-devel at kievinfo.com
Mon Jan 15 11:42:10 CST 2007
Christoph Frick wrote:
> Add a config for the axes like we do for the buttons
>
> This adds a mapping from the linux input id of the axis to the instance id
> we assigned the axis.
> ---
> df->rgodf[idx++].dwType = DIDFT_MAKEINSTANCE(axis++) | DIDFT_ABSAXIS;
> }
> - for (i = 0; i < 4; i++)
> +
> + idx = WINE_JOYSTICK_MAX_AXES;
Why are you creating a gap? This is exactly the point here to skip all
the objects that we do not have. And they all need to be sequential in
godf - no gaps. Otherwise you braking EnumObjects.
Vitaliy.
More information about the wine-devel
mailing list