Le Friday 30 January 2009 02:58:34 Vitaliy Margolen, vous avez écrit :
> First why do you typecase DWORD to (int) to assign to DWORD? Second DWORD
> will always be > 0. If you want to check it against limit then just check
> it being <= 1 otherwise return error.
[...]
> You should use MulDiv in
Vincent Pelletier wrote:
> Hi.
>
> Windows supports setting force feedback effect gain at 2 levels:
> - device
> - effect
> There is support for the former on Linux, but not for the latter.
>
>
> + DWORD ff_gain;
> };
...
> + This->ff_gain = max(0, (int) pd->d