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

Method _axis_event

core/input/input.cpp:1450–1458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1448}
1449
1450void Input::_axis_event(int p_device, JoyAxis p_axis, float p_value) {
1451 Ref<InputEventJoypadMotion> ievent;
1452 ievent.instantiate();
1453 ievent->set_device(p_device);
1454 ievent->set_axis(p_axis);
1455 ievent->set_axis_value(p_value);
1456
1457 parse_input_event(ievent);
1458}
1459
1460void Input::_update_action_cache(const StringName &p_action_name, ActionState &r_action_state) {
1461 // Update the action cache, computed from the per-device and per-event states.

Callers

nothing calls this directly

Calls 4

set_axis_valueMethod · 0.80
instantiateMethod · 0.45
set_deviceMethod · 0.45
set_axisMethod · 0.45

Tested by

no test coverage detected