17 INLINE AnalogNode::OutputData::
29 return (_analog !=
nullptr) && _analog->is_connected();
38 return _analog->get_num_axes();
48 return _analog->get_axis_value(index);
57 return _analog->is_axis_known(index);
68 nassertv(channel >= 0 && channel < max_outputs);
69 _outputs[channel]._index = index;
70 _outputs[channel]._flip = flip;
79 nassertv(channel >= 0 && channel < max_outputs);
80 _outputs[channel]._index = -1;
90 nassertr(channel >= 0 && channel < max_outputs, -1);
91 return _outputs[channel]._index;
100 nassertr(channel >= 0 && channel < max_outputs,
false);
101 return _outputs[channel]._flip;
bool is_output_flipped(int channel) const
Returns true if the analog control index that is output to the data graph on the indicated channel is...
void clear_output(int channel)
Removes the output to the data graph associated with the indicated channel.
int get_output(int channel) const
Returns the analog control index that is output to the data graph on the indicated channel,...
bool is_valid() const
Returns true if the AnalogNode is valid and connected to a server, false otherwise.
int get_num_controls() const
Returns the number of analog controls known to the AnalogNode.
void set_output(int channel, int index, bool flip)
Causes a particular analog control to be placed in the data graph for the indicated channel.
bool is_control_known(int index) const
Returns true if the state of the indicated analog control is known, or false if we have never heard a...
double get_control_state(int index) const
Returns the current position of indicated analog control identified by its index number,...