Panda3D
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Enumerations
panda
src
vrpn
vrpnButton.I
1
// Filename: vrpnButton.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: VrpnButton::get_button_name
17
// Access: Public
18
// Description: Returns the name of the button device that was used
19
// to create this VrpnButton.
20
////////////////////////////////////////////////////////////////////
21
INLINE
const
string
&
VrpnButton::
22
get_button_name
()
const
{
23
return
_button_name;
24
}
25
26
////////////////////////////////////////////////////////////////////
27
// Function: VrpnButton::is_empty
28
// Access: Public
29
// Description: Returns true if no VrpnButtonDevices reference this
30
// VrpnButton, or false otherwise.
31
////////////////////////////////////////////////////////////////////
32
INLINE
bool
VrpnButton::
33
is_empty
()
const
{
34
return
_devices.empty();
35
}
36
37
////////////////////////////////////////////////////////////////////
38
// Function: VrpnButton::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
VrpnButton::
45
poll
() {
46
_button->mainloop();
47
}
VrpnButton::poll
void poll()
Polls the connected device.
Definition:
vrpnButton.I:45
VrpnButton::get_button_name
const string & get_button_name() const
Returns the name of the button device that was used to create this VrpnButton.
Definition:
vrpnButton.I:22
VrpnButton::is_empty
bool is_empty() const
Returns true if no VrpnButtonDevices reference this VrpnButton, or false otherwise.
Definition:
vrpnButton.I:33
Generated on Mon Feb 1 2016 13:44:41 for Panda3D by
1.8.5