mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Optimize InputMap::get_actions.
This commit is contained in:
@@ -31,7 +31,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "core/input/input_event.h"
|
||||
#include "core/object/class_db.h"
|
||||
#include "core/object/object.h"
|
||||
#include "core/templates/hash_map.h"
|
||||
|
||||
@@ -67,7 +66,6 @@ private:
|
||||
List<Ref<InputEvent>>::Element *_find_event(Action &p_action, const Ref<InputEvent> &p_event, bool p_exact_match = false, bool *r_pressed = nullptr, float *r_strength = nullptr, float *r_raw_strength = nullptr, int *r_event_index = nullptr) const;
|
||||
|
||||
TypedArray<InputEvent> _action_get_events(const StringName &p_action);
|
||||
TypedArray<StringName> _get_actions();
|
||||
|
||||
protected:
|
||||
static void _bind_methods();
|
||||
@@ -81,7 +79,7 @@ public:
|
||||
static _FORCE_INLINE_ InputMap *get_singleton() { return singleton; }
|
||||
|
||||
bool has_action(const StringName &p_action) const;
|
||||
List<StringName> get_actions() const;
|
||||
TypedArray<StringName> get_actions();
|
||||
void add_action(const StringName &p_action, float p_deadzone = DEFAULT_DEADZONE);
|
||||
void erase_action(const StringName &p_action);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user