15 #include "mouseWatcherParameter.h" 22 void MouseWatcherParameter::
23 output(ostream &out)
const {
24 bool output_anything =
false;
28 output_anything =
true;
32 if (output_anything) {
35 out <<
"key" << _keycode;
36 output_anything =
true;
40 if (output_anything) {
44 output_anything =
true;
48 if (output_anything) {
51 out <<
"(" << _mouse <<
")";
52 output_anything =
true;
56 if (output_anything) {
60 output_anything =
true;
63 if (!output_anything) {
64 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, false otherwise.
bool has_button() const
Returns true if this parameter has an associated mouse or keyboard button, false otherwise.
bool has_keycode() const
Returns true if this parameter has an associated keycode, false otherwise.