11#include "vrpn_Types.h"
14#include "vrpn_Button.h"
19#include "vrpn_Analog.h"
44 vrpn_Android_Server(vrpn_int32 num_analogs, vrpn_int32 * analog_sizes, vrpn_int32 num_buttons, vrpn_int32 port);
53 void set_analog(vrpn_int32 analog_id, vrpn_int32 channel, vrpn_float64 val);
64 void initialize(vrpn_int32 num_analogs, vrpn_int32 * analog_sizes, vrpn_int32 num_buttons);
67 const char * ANALOG_SERVER_NAME;
68 const char * BUTTON_SERVER_NAME;
70 vrpn_int32 num_analogs;
71 vrpn_int32 * analog_sizes;
~vrpn_Android_Server()
Destructor.
void report_analog_chg(vrpn_int32 analog_id)
Called when changes are made to any of the analog values
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,...
void set_button(vrpn_int32 button_id, vrpn_int32 state)
Set the value for the given button
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
Generic connection class not specific to the transport mechanism.
定义 vrpn_Connection.h:562