what it mean??? why annotated it
Code: Select all
/* don't use DI
LogManager::getSingleton().logMessage("Win32Input: Establishing mouse input.");
// Create mouse device
hr = mlpDI->CreateDeviceEx(GUID_SysMouse, IID_IDirectInputDevice7,
(void**)&mlpDIMouse, NULL);
if (FAILED(hr))
throw Exception(hr, "Unable to create DirectInput mouse device.",
"Win32Input - initialise");
// Set data format
hr = mlpDIMouse->SetDataFormat(&c_dfDIMouse);
if (FAILED(hr))
throw Exception(hr, "Unable to set DirectInput mouse device data format.",
"Win32Input - initialise");
// Make the window grab mouse behaviour when foreground
hr = mlpDIMouse->SetCooperativeLevel(hWnd,
DISCL_BACKGROUND | DISCL_NONEXCLUSIVE);
if (FAILED(hr))
throw Exception(hr, "Unable to set DirectInput mouse device co-operative level.",
"Win32Input - initialise");
// Acquire input
hr = mlpDIKeyboard->Acquire();
if (FAILED(hr))
throw Exception(hr, "Unable to set aquire DirectInput mouse device.",
"Win32Input - initialise");
LogManager::getSingleton().logMessage("Win32Input: Mouse input established.");
*/