RflySimSDK v3.05
RflySimSDK说明文档
载入中...
搜索中...
未找到
vrpn_Android_Server类 参考

Public 成员函数

 vrpn_Android_Server (vrpn_int32 num_analogs, vrpn_int32 *analog_sizes, vrpn_int32 num_buttons, vrpn_int32 port)
 Constructor. Takes an array of integers representing the number of channels for each analog server, the number of buttons, and the port number.
 
 ~vrpn_Android_Server ()
 Destructor.
 
void mainloop ()
 Main loop to be called at every time step. Calls the mainloop() functions of the member servers.
 
void set_analog (vrpn_int32 analog_id, vrpn_int32 channel, vrpn_float64 val)
 Set the value for the given channel of the given vrpn_Analog_Server
 
void set_button (vrpn_int32 button_id, vrpn_int32 state)
 Set the value for the given button
 
void report_analog_chg (vrpn_int32 analog_id)
 Called when changes are made to any of the analog values
 

构造及析构函数说明

◆ vrpn_Android_Server()

vrpn_Android_Server ( vrpn_int32 num_analogs,
vrpn_int32 * analog_sizes,
vrpn_int32 num_buttons,
vrpn_int32 port )

Constructor. Takes an array of integers representing the number of channels for each analog server, the number of buttons, and the port number.

◆ ~vrpn_Android_Server()

Destructor.

成员函数说明

◆ mainloop()

void mainloop ( )

Main loop to be called at every time step. Calls the mainloop() functions of the member servers.

◆ report_analog_chg()

void report_analog_chg ( vrpn_int32 analog_id)

Called when changes are made to any of the analog values

◆ set_analog()

void set_analog ( vrpn_int32 analog_id,
vrpn_int32 channel,
vrpn_float64 val )

Set the value for the given channel of the given vrpn_Analog_Server

◆ set_button()

void set_button ( vrpn_int32 button_id,
vrpn_int32 state )

Set the value for the given button


该类的文档由以下文件生成: