Panda3D
vrpnButtonDevice.cxx
1 // Filename: vrpnButtonDevice.cxx
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 #include "vrpnButtonDevice.h"
16 #include "vrpnClient.h"
17 
18 TypeHandle VrpnButtonDevice::_type_handle;
19 
20 ////////////////////////////////////////////////////////////////////
21 // Function: VrpnButtonDevice::Constructor
22 // Access: Public
23 // Description:
24 ////////////////////////////////////////////////////////////////////
25 VrpnButtonDevice::
26 VrpnButtonDevice(VrpnClient *client, const string &device_name,
27  VrpnButton *vrpn_button) :
28  ClientButtonDevice(client, device_name),
29  _vrpn_button(vrpn_button)
30 {
31 }
32 
33 ////////////////////////////////////////////////////////////////////
34 // Function: VrpnButtonDevice::Destructor
35 // Access: Public
36 // Description:
37 ////////////////////////////////////////////////////////////////////
38 VrpnButtonDevice::
39 ~VrpnButtonDevice() {
40  disconnect();
41 }
A specific ClientBase that connects to a VRPN server and records information on the connected VRPN de...
Definition: vrpnClient.h:38
A device, attached to the ClientBase by a ButtonNode, that records the data from a single named butto...
This is the actual interface to a particular VRPN button device, and all of its numbered buttons...
Definition: vrpnButton.h:42
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85