Original Post
I''m not so pro in win32 programming that I could do this on my own so please help.
I want to write a DLL that would intercept all directInput joygetpos(orwhateverthecallis) calls to smooth out all input.
here''s the task in very minimal pseudo..
------------------------------------------------------------------
joypos *buffer
i=0 //at load time of dll..
length=4 //this should be configurable
function joygetpos() //this is intercepted, not the original
{
buffer=original joygetpos();
i++;
i>=length ? i=0;
return (buffer/length); // <-not really like that
}