Go to the documentation of this file. 1 #ifndef BUTTON_BEHAVIOUR_h
2 #define BUTTON_BEHAVIOUR_h
19 char*
args() {
return "<String buttonId>"; };
23 String str =
"{\"id\":\"" + String(_node->
getId()) +
"\",\"Input\":{\"type\":\"" + String(
name()) +
"\",\"button\":\"" +
args +
"\"}}";
25 return "ButtonPressed behaviour " +
_name +
" with (" +
args +
")";
41 char*
args() {
return "<String buttonId>"; };
45 String str =
"{\"id\":\"" + String(_node->
getId()) +
"\",\"Input\":{\"type\":\"" + String(
name()) +
"\",\"button\":\"" +
args +
"\"}}";
47 return "ButtonReleased behaviour " +
_name +
" with (" +
args +
")";
63 char*
args() {
return "<String buttonId>"; };
67 String str =
"{\"id\":\"" + String(_node->
getId()) +
"\",\"Input\":{\"type\":\"" + String(
name()) +
"\",\"button\":\"" +
args +
"\"}}";
69 return "ButtonClicked behaviour " +
_name +
" with (" +
args +
")";
85 char*
args() {
return "<String buttonId>"; };
89 String str =
"{\"id\":\"" + String(_node->
getId()) +
"\",\"Input\":{\"type\":\"" + String(
name()) +
"\",\"button\":\"" +
args +
"\"}}";
91 return "ButtonHeld behaviour " +
_name +
" with (" +
args +
")";
107 char*
args() {
return "<String buttonId>"; };
111 String str =
"{\"id\":\"" + String(_node->
getId()) +
"\",\"Input\":{\"type\":\"" + String(
name()) +
"\",\"button\":\"" +
args +
"\"}}";
113 return "ButtonTick behaviour " +
_name +
" with (" +
args +
")";
virtual String name()
Definition: Behaviours.h:28
char * getId()
Definition: VizBlocks.h:291
String _name
Definition: Behaviours.h:11
Definition: Behaviours.h:4
void announce(String doc)
Definition: VizBlocks.h:270
Definition: VizBlocks.h:15