19 void MouseWatcherParameter::
20 output(std::ostream &out)
const {
21 bool output_anything =
false;
25 output_anything =
true;
29 if (output_anything) {
32 out <<
"key" << _keycode;
33 output_anything =
true;
37 if (output_anything) {
41 output_anything =
true;
45 if (output_anything) {
48 out <<
"(" << _mouse <<
")";
49 output_anything =
true;
53 if (output_anything) {
57 output_anything =
true;
60 if (!output_anything) {
61 out <<
"no parameters";
bool has_mouse() const
Returns true if this parameter has an associated mouse position, false otherwise.
bool is_outside() const
Returns true if the mouse was outside the region at the time the event was generated,...
bool has_button() const
Returns true if this parameter has an associated mouse or keyboard button, false otherwise.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
bool has_keycode() const
Returns true if this parameter has an associated keycode, false otherwise.