MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / get_axis

Method get_axis

core/input/input.cpp:550–552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

548}
549
550float Input::get_axis(const StringName &p_negative_action, const StringName &p_positive_action) const {
551 return get_action_strength(p_positive_action) - get_action_strength(p_negative_action);
552}
553
554Vector2 Input::get_vector(const StringName &p_negative_x, const StringName &p_positive_x, const StringName &p_negative_y, const StringName &p_positive_y, float p_deadzone) const {
555 Vector2 vector = Vector2(

Callers 4

_set_eventMethod · 0.45
get_event_textMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected