2014-12-05 20:03:50 +00:00
|
|
|
#include <stdio.h>
|
2014-12-06 13:14:43 +00:00
|
|
|
#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;
|
|
|
|
|
2015-10-16 16:34:36 +10:30
|
|
|
BOOL updateJoystick(iInterface) {
|
2014-12-05 20:03:50 +00:00
|
|
|
BYTE id = (BYTE)iInterface;
|
|
|
|
|
|
|
|
iReport.bDevice = id;
|
|
|
|
|
|
|
|
if(!UpdateVJD(iInterface, (PVOID)&iReport)) {
|
2014-12-06 13:14:43 +00:00
|
|
|
/*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);
|
2014-12-06 13:14:43 +00:00
|
|
|
ContinuousPOV = (BOOL)GetVJDContPovNumber(iInterface);*/
|
|
|
|
return false;
|
2014-12-05 20:03:50 +00:00
|
|
|
}
|
2014-12-06 13:14:43 +00:00
|
|
|
|
|
|
|
return true;
|
2014-12-05 20:03:50 +00:00
|
|
|
}
|