------------------------------------------------------------------------------
| 265 | |
| 266 | //------------------------------------------------------------------------------ |
| 267 | void DInputManager::enumerateDevices() |
| 268 | { |
| 269 | if ( mDInputInterface ) |
| 270 | { |
| 271 | #ifdef LOG_INPUT |
| 272 | Input::log( "Enumerating input devices...\n" ); |
| 273 | #endif |
| 274 | |
| 275 | DInputDevice::init(); |
| 276 | DInputDevice::smDInputInterface = mDInputInterface; |
| 277 | mDInputInterface->EnumDevices( DI8DEVTYPE_KEYBOARD, EnumDevicesProc, this, DIEDFL_ATTACHEDONLY ); |
| 278 | mDInputInterface->EnumDevices( DI8DEVTYPE_MOUSE, EnumDevicesProc, this, DIEDFL_ATTACHEDONLY ); |
| 279 | mDInputInterface->EnumDevices( DI8DEVCLASS_GAMECTRL, EnumDevicesProc, this, DIEDFL_ATTACHEDONLY ); |
| 280 | } |
| 281 | } |
| 282 | |
| 283 | //------------------------------------------------------------------------------ |
| 284 | BOOL CALLBACK DInputManager::EnumDevicesProc( const DIDEVICEINSTANCE* pddi, LPVOID pvRef ) |