silkgandalf
Messages postés2Date d'inscriptionlundi 16 décembre 2002StatutMembreDernière intervention 1 août 2003
-
30 juil. 2003 à 16:59
cs_Nico_972
Messages postés3Date d'inscriptionmercredi 28 septembre 2005StatutMembreDernière intervention 6 octobre 2005
-
6 oct. 2005 à 23:24
bon alors voila mon probleme:
je veut pouvoir utiliser 2 joysticks.
en avoir 1 j'y arrive, mais pour en avoir 2 je ne sait pas comment faire.
2 LPDIRECTINPUTDEVICE8?
dans ce cas, comment initialiser le 2eme
cs_Nico_972
Messages postés3Date d'inscriptionmercredi 28 septembre 2005StatutMembreDernière intervention 6 octobre 2005 6 oct. 2005 à 23:18
Pour étendre le nombre maximum de joysticks à "NBR_JOYSTICKS" :
#define NBR_JOYSTICKS 2
int numJoystick = -1;
LPDIRECTINPUTDEVICE8 g_pJoystick[2] = {NULL, NULL};
...
...
// Cette fonction est appelée à chaque fois qu'un joystick est trouvé.
BOOL CALLBACK EnumJoysticksCallback(const DIDEVICEINSTANCE* pdidInstance,
VOID* pContext )
{
HRESULT window;