0684a4811e
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.
26 lines
527 B
C
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;
|
|
}
|