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

Method set_axis_value

core/input/input_event.cpp:1116–1120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1114}
1115
1116void InputEventJoypadMotion::set_axis_value(float p_value) {
1117 axis_value = p_value;
1118 pressed = Math::abs(axis_value) >= InputMap::DEFAULT_TOGGLE_DEADZONE;
1119 emit_changed();
1120}
1121
1122float InputEventJoypadMotion::get_axis_value() const {
1123 return axis_value;

Callers 7

create_referenceMethod · 0.80
_axis_eventMethod · 0.80
_update_input_listMethod · 0.80
test_input_event.hFile · 0.80

Calls 1

absFunction · 0.50

Tested by

no test coverage detected