| 136 | } |
| 137 | |
| 138 | TypedArray<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 | |
| 152 | List<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); |
no test coverage detected