Panda3D
vrpnButtonDevice.cxx
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file vrpnButtonDevice.cxx
10  * @author drose
11  * @date 2001-01-26
12  */
13 
14 #include "vrpnButtonDevice.h"
15 #include "vrpnClient.h"
16 
17 TypeHandle VrpnButtonDevice::_type_handle;
18 
19 /**
20  *
21  */
22 VrpnButtonDevice::
23 VrpnButtonDevice(VrpnClient *client, const std::string &device_name,
24  VrpnButton *vrpn_button) :
25  ClientButtonDevice(client, device_name),
26  _vrpn_button(vrpn_button)
27 {
28 }
29 
30 /**
31  *
32  */
33 VrpnButtonDevice::
34 ~VrpnButtonDevice() {
35  disconnect();
36 }
A specific ClientBase that connects to a VRPN server and records information on the connected VRPN de...
Definition: vrpnClient.h:35
void disconnect()
Disconnects the ClientDevice from its ClientBase object.
A device, attached to the ClientBase by a ButtonNode, that records the data from a single named butto...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the actual interface to a particular VRPN button device, and all of its numbered buttons.
Definition: vrpnButton.h:37
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.