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

Method set_axis

core/input/input_event.cpp:1105–1110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1103///////////////////////////////////
1104
1105void InputEventJoypadMotion::set_axis(JoyAxis p_axis) {
1106 ERR_FAIL_COND(p_axis < JoyAxis::INVALID || p_axis > JoyAxis::MAX);
1107
1108 axis = p_axis;
1109 emit_changed();
1110}
1111
1112JoyAxis InputEventJoypadMotion::get_axis() const {
1113 return axis;

Callers 3

create_referenceMethod · 0.45
_axis_eventMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected