3dscontroller-ng/PC/source/joystick.c
Poke 0684a4811e Made vJoy Device configurabe
You can now choose which vJoy device to output to in the .ini, allowing
you to use multiple 3DS, each controlling their own virtual Joystick.
2015-10-16 16:34:36 +10:30

26 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;
}