summaryrefslogtreecommitdiffstats
path: root/LibOVR/Src/OVR_Linux_HIDDevice.cpp
diff options
context:
space:
mode:
authorBrad Davis <[email protected]>2014-01-10 18:07:32 -0800
committerBrad Davis <[email protected]>2014-01-10 18:07:32 -0800
commit6794b1b3816486f7e379b0046556c3a6f48fbbdf (patch)
tree96e763ec261845f06ff46da90bd89222da631003 /LibOVR/Src/OVR_Linux_HIDDevice.cpp
parent653683bd2a5eb4d1d79a52161c302477be2afaa8 (diff)
parentf28388ff2af14b56ef2d973b2f4f9da021716d4c (diff)
Merging in updates from 0.2.5c
Diffstat (limited to 'LibOVR/Src/OVR_Linux_HIDDevice.cpp')
-rw-r--r--LibOVR/Src/OVR_Linux_HIDDevice.cpp17
1 files changed, 14 insertions, 3 deletions
diff --git a/LibOVR/Src/OVR_Linux_HIDDevice.cpp b/LibOVR/Src/OVR_Linux_HIDDevice.cpp
index 21d8ee5..c96183b 100644
--- a/LibOVR/Src/OVR_Linux_HIDDevice.cpp
+++ b/LibOVR/Src/OVR_Linux_HIDDevice.cpp
@@ -6,10 +6,21 @@ Authors : Lee Cooper
Copyright : Copyright 2013 Oculus VR, Inc. All Rights reserved.
-Use of this software is subject to the terms of the Oculus license
-agreement provided at the time of installation or download, or which
+Licensed under the Oculus VR SDK License Version 2.0 (the "License");
+you may not use the Oculus VR SDK except in compliance with the License,
+which is provided at the time of installation or download, or which
otherwise accompanies this software in either electronic or hard copy form.
+You may obtain a copy of the License at
+
+http://www.oculusvr.com/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, the Oculus VR SDK
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
*************************************************************************************/
#include "OVR_Linux_HIDDevice.h"
@@ -257,7 +268,7 @@ bool HIDDeviceManager::Enumerate(HIDEnumerateVisitor* enumVisitor)
getFullDesc(hid, &devDesc);
// Look for the device to check if it is already opened.
- Ptr<DeviceCreateDesc> existingDevice = DevManager->FindHIDDevice(devDesc);
+ Ptr<DeviceCreateDesc> existingDevice = DevManager->FindHIDDevice(devDesc, true);
// if device exists and it is opened then most likely the device open()
// will fail; therefore, we just set Enumerated to 'true' and continue.
if (existingDevice && existingDevice->pDevice)