Panda3D
vrpnAnalog.I
1 // Filename: vrpnAnalog.I
2 // Created by: drose (26Jan01)
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 ////////////////////////////////////////////////////////////////////
16 // Function: VrpnAnalog::get_analog_name
17 // Access: Public
18 // Description: Returns the name of the analog device that was used
19 // to create this VrpnAnalog.
20 ////////////////////////////////////////////////////////////////////
21 INLINE const string &VrpnAnalog::
22 get_analog_name() const {
23  return _analog_name;
24 }
25 
26 ////////////////////////////////////////////////////////////////////
27 // Function: VrpnAnalog::is_empty
28 // Access: Public
29 // Description: Returns true if no VrpnAnalogDevices reference this
30 // VrpnAnalog, or false otherwise.
31 ////////////////////////////////////////////////////////////////////
32 INLINE bool VrpnAnalog::
33 is_empty() const {
34  return _devices.empty();
35 }
36 
37 ////////////////////////////////////////////////////////////////////
38 // Function: VrpnAnalog::poll
39 // Access: Public
40 // Description: Polls the connected device. Normally you should not
41 // call this directly; this will be called by the
42 // VrpnClient.
43 ////////////////////////////////////////////////////////////////////
44 INLINE void VrpnAnalog::
45 poll() {
46  _analog->mainloop();
47 }
void poll()
Polls the connected device.
Definition: vrpnAnalog.I:45
bool is_empty() const
Returns true if no VrpnAnalogDevices reference this VrpnAnalog, or false otherwise.
Definition: vrpnAnalog.I:33
const string & get_analog_name() const
Returns the name of the analog device that was used to create this VrpnAnalog.
Definition: vrpnAnalog.I:22