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

27 lines
527 B
C
Raw Normal View History

2014-12-05 20:03:50 +00:00
#include <stdio.h>
#include <stdbool.h>
2014-12-05 20:03:50 +00:00
#include "joystick.h"
int ContPovNumber;
2015-03-21 12:28:25 +00:00
//BOOL ContinuousPOV = FALSE;
2014-12-05 20:03:50 +00:00
2015-03-21 12:28:25 +00:00
JOYSTICK_POSITION iReport;
BOOL updateJoystick(iInterface) {
2014-12-05 20:03:50 +00:00
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");
2014-12-05 20:03:50 +00:00
getchar();
AcquireVJD(iInterface);
ContinuousPOV = (BOOL)GetVJDContPovNumber(iInterface);*/
return false;
2014-12-05 20:03:50 +00:00
}
return true;
2014-12-05 20:03:50 +00:00
}