From 09eae1f65fea86a49653068d4cf3c4d7574e098d Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Mon, 14 Feb 2011 14:47:47 -0600 Subject: [PATCH] mouse code: input still works... again --- .../InputHandler_DirectInputHelper.cpp | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/src/arch/InputHandler/InputHandler_DirectInputHelper.cpp b/src/arch/InputHandler/InputHandler_DirectInputHelper.cpp index e29f7facdf..a47572aba2 100644 --- a/src/arch/InputHandler/InputHandler_DirectInputHelper.cpp +++ b/src/arch/InputHandler/InputHandler_DirectInputHelper.cpp @@ -52,27 +52,6 @@ bool DIDevice::Open() return false; } - // load mouse - /* - hr = g_dinput->CreateDevice( MouseInst.guidInstance, &tmpdevice, NULL ); - if ( hr != DI_OK ) - { - LOG->Info( hr_ssprintf(hr, "OpenDevice: IDirectInput_CreateDevice") ); - return false; - } - */ - // is this ok? -aj - //hr = tmpdevice->QueryInterface( IID_IDirectInputDevice2, (LPVOID *) &Device ); - /* - tmpdevice->Release(); - if ( hr != DI_OK ) - { - LOG->Info( hr_ssprintf(hr, "OpenDevice(%s): IDirectInputDevice::QueryInterface", m_sName.c_str()) ); - return false; - } - */ - - // should mouse be foreground? -aj int coop = DISCL_NONEXCLUSIVE | DISCL_BACKGROUND; if( type == KEYBOARD ) coop = DISCL_NONEXCLUSIVE | DISCL_FOREGROUND;