Panda3D
vrpn_interface.h
1 // Filename: vrpn_interface.h
2 // Created by: drose (25Jan01)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef VRPN_INTERFACE_H
16 #define VRPN_INTERFACE_H
17 
18 #include "pandabase.h"
19 
20 #ifdef CPPPARSER
21  // For correct interrogate parsing of UNC's vrpn library.
22  #if defined(WIN32_VC) || defined(WIN64_VC)
23  #define _WIN32
24  #define SOCKET int
25  #else
26  #define linux
27  typedef struct timeval timeval;
28  #endif
29 #endif
30 
31 #include "vrpn_Connection.h"
32 #include "vrpn_Tracker.h"
33 #include "vrpn_Analog.h"
34 #include "vrpn_Button.h"
35 #include "vrpn_Dial.h"
36 
37 #ifdef sleep
38 #undef sleep
39 #endif
40 
41 #endif