   DirectInput 8 callbacks ? - no thanks
  Hi I want to create a class for input devices. The VC++ sampleshows how to enumerate all joysticks but i only ever want the first one and i cant overide the method or implement them in a class. Also i cant determine the size value to get any type of access with enumerating.// Look for a simple joystick we can use for this sample program.    if( FAILED( hr = g_pDI->EnumDevices( DI8DEVCLASS_GAMECTRL,  EnumJoysticksCallback, NULL, DIEDFL_ATTACHEDONLY ) ) )   return hr;//callsif( FAILED( hr = g_pJoystick->EnumObjects( EnumObjectsCallback, (VOID*)hDlg, DIDFT_ALL ) ) ) return hr;//callsBOOL CALLBACK EnumObjectsCallback( const DIDEVICEOBJECTINSTANCE* pdidoi,VOID* pContext )// pdidoi   IT''''s Geeky 
  I might be missunerstanding your question completely.But are you trying or do you want this.class CInputClass{public:   static BOOL CALLBACK EnumObjectsCallback( const DIDEVICEOBJECTINSTANCE* pdidoi, VOID* pContext );};BOOL CALLBACK CInputClass::EnumObjectsCallback( const DIDEVICEOBJECTINSTANCE* pdidoi, VOID* pContext ){ return TRUE;}---It's just to late for me I guess, sorry if I just cause any more questions over the case- Patrik Willb   Auburn / Auburn - The Final Project (Horror/Adventure Game)The Lord says He can get me out of this mess, but He's pretty sure you're fucked.- Stephen (Braveheart)   [edited by - Willbo on February 13, 2004 8:47:07 PM]