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

Method get_actions

core/input/input_map.cpp:138–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138TypedArray<StringName> InputMap::get_actions() {
139 TypedArray<StringName> ret;
140
141 ret.resize(input_map.size());
142
143 uint32_t i = 0;
144 for (const KeyValue<StringName, Action> &kv : input_map) {
145 ret[i] = kv.key;
146 i++;
147 }
148
149 return ret;
150}
151
152List<Ref<InputEvent>>::Element *InputMap::_find_event(Action &p_action, const Ref<InputEvent> &p_event, bool p_exact_match, bool *r_pressed, float *r_strength, float *r_raw_strength, int *r_event_index) const {
153 ERR_FAIL_COND_V(p_event.is_null(), nullptr);

Callers 1

get_argument_optionsMethod · 0.45

Calls 2

sizeMethod · 0.65
resizeMethod · 0.45

Tested by

no test coverage detected