kennit69
Messages postés2Date d'inscriptiondimanche 7 août 2005StatutMembreDernière intervention 7 août 2005
-
7 août 2005 à 17:06
kennit69
Messages postés2Date d'inscriptiondimanche 7 août 2005StatutMembreDernière intervention 7 août 2005
-
7 août 2005 à 20:25
bonjour
je souhaite integrer un joystick dans mon programme directx
j'ai suivi les etapes explique sur le site msdn et lors de l'appele a la fonction
HRESULT hr = g_pJoystick->SetCooperativeLevel( DXUTGetHWND(), DISCL_EXCLUSIVE | DISCL_FOREGROUND ) ) )
hr prend la valeur de E_HANDLE (pour un fonctionnement normal il devrait etre a S_OK )
voila la parit de mon code d'initialisation
HRESULT InitDirectInput( HWND hDlg )
{
HRESULT hr;
// Register with the DirectInput subsystem and get a pointer