3dscontroller-ng/PC/source/joystick.c

27 lines
527 B
C

#include <stdio.h>
#include <stdbool.h>
#include "joystick.h"
int ContPovNumber;
//BOOL ContinuousPOV = FALSE;
JOYSTICK_POSITION iReport;
BOOL updateJoystick(iInterface) {
BYTE id = (BYTE)iInterface;
iReport.bDevice = id;
if(!UpdateVJD(iInterface, (PVOID)&iReport)) {
/*printf("vJoy device %d failed - try to enable device\n", iInterface);
printf("PRESS ENTER TO CONTINUE\n");
getchar();
AcquireVJD(iInterface);
ContinuousPOV = (BOOL)GetVJDContPovNumber(iInterface);*/
return false;
}
return true;
}