Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
OVR_HIDDeviceBase.h
Go to the documentation of this file.
1 /************************************************************************************
2 
3 PublicHeader: OVR.h
4 Filename : OVR_HIDDeviceBase.h
5 Content : Definition of HID device interface.
6 Created : March 11, 2013
7 Authors : Lee Cooper
8 
9 Copyright : Copyright 2014 Oculus VR, Inc. All Rights reserved.
10 
11 Licensed under the Oculus VR Rift SDK License Version 3.1 (the "License");
12 you may not use the Oculus VR Rift SDK except in compliance with the License,
13 which is provided at the time of installation or download, or which
14 otherwise accompanies this software in either electronic or hard copy form.
15 
16 You may obtain a copy of the License at
17 
18 http://www.oculusvr.com/licenses/LICENSE-3.1
19 
20 Unless required by applicable law or agreed to in writing, the Oculus VR SDK
21 distributed under the License is distributed on an "AS IS" BASIS,
22 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23 See the License for the specific language governing permissions and
24 limitations under the License.
25 
26 *************************************************************************************/
27 
28 #ifndef OVR_HIDDeviceBase_h
29 #define OVR_HIDDeviceBase_h
30 
31 #include "Kernel/OVR_Types.h"
32 
33 namespace OVR {
34 
35 //-------------------------------------------------------------------------------------
36 // ***** HIDDeviceBase
37 
38 // Base interface for HID devices.
40 {
41 public:
42 
43  virtual ~HIDDeviceBase() { }
44 
45  virtual bool SetFeatureReport(UByte* data, UInt32 length) = 0;
46  virtual bool GetFeatureReport(UByte* data, UInt32 length) = 0;
47 };
48 
49 } // namespace OVR
50 
51 #endif
virtual bool GetFeatureReport(UByte *data, UInt32 length)=0
uint32_t UInt32
Definition: OVR_Types.h:253
uint8_t UByte
Definition: OVR_Types.h:249
virtual bool SetFeatureReport(UByte *data, UInt32 length)=0