BOOL CALLBACK EnumAxesCallback( const DIDEVICEOBJECTINSTANCE* pdidoi, VOID* pContext );if ( FAILED( hr = m_pJoyDev->EnumObjects( EnumAxesCallback, (VOID*)g_hWndMain, DIDFT_AXIS ) ) ) return hr;
Then I get the following compiler error.
error C2664: 'IDirectInputDevice8A::EnumObjects' : cannot convert parameter 1 from 'BOOL (const DIDEVICEOBJECTINSTANCE *,void *)' to 'LPDIENUMDEVICEOBJECTSCALLBACKA'
None of the functions with this name in scope match the target type
I'm not sure what's going on. I took this code straight out of the DirectX samples. The sample compiles, but when I copy the code into my engine, no luck.
I started a thread on Game Dev, Indie Gamer, and IGDA to investigate.
I don't have access to DirectX SDK at the moment, but I'm quite sure that should do the job...