73 virtual int register_message_handler(
void *userdata,
74 vrpn_TEXTHANDLER handler)
76 return d_callback_list.register_handler(userdata, handler);
79 virtual int unregister_message_handler(
void *userdata,
80 vrpn_TEXTHANDLER handler)
82 return d_callback_list.unregister_handler(userdata, handler);
88 d_connection->mainloop();
94 static int VRPN_CALLBACK
Allows a user to handle text messages directly, in addition to having the
定义 vrpn_Text.h:69
virtual void mainloop(void)
定义 vrpn_Text.h:85
virtual int register_types(void)
No types to register beyond the text, which is done in BaseClass.
定义 vrpn_Text.h:99
Allows a user to send text messages from a device (usually,
定义 vrpn_Text.h:40
void mainloop(void)
Mainloop the connection to send the message.
定义 vrpn_Text.h:49
int send_message(const char *msg, vrpn_TEXT_SEVERITY type=vrpn_TEXT_NORMAL, vrpn_uint32 level=0, const struct timeval time=vrpn_TEXT_NOW)
Send a text message.
virtual int register_types(void)
No types to register beyond the text, which is done in BaseClass.
定义 vrpn_Text.h:63
Structure passed back to user-level code from a vrpn_Text_Receiver.
定义 vrpn_Text.h:22