essentially joyGetPos keeps returning JOYERR_PARAMS, even though it supposedly does not return such an error.
here's a sample of usage:
#include <windows.h>
int main(int argc, char **argv){
printf("Joys supported: %d\n", joyGetNumDevs()); //Output: "Joys supported: 16"
JOYINFO jp;
for(unsigned int i=0;i<joyGetNumDevs();i++){
MMRESULT Result = joyGetPos(i, &jp);
printf("Joy %d: %d\n", i, Result); //Output: "Joy (0-15): 165" (165 is JOYERR_PARAMS)
}
return 0;
}