mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Add event_index to InputEventAction
This commit is contained in:
@@ -453,6 +453,7 @@ class InputEventAction : public InputEvent {
|
||||
|
||||
StringName action;
|
||||
float strength = 1.0f;
|
||||
int event_index = -1;
|
||||
|
||||
protected:
|
||||
static void _bind_methods();
|
||||
@@ -466,6 +467,9 @@ public:
|
||||
void set_strength(float p_strength);
|
||||
float get_strength() const;
|
||||
|
||||
void set_event_index(int p_index);
|
||||
int get_event_index() const;
|
||||
|
||||
virtual bool is_action(const StringName &p_action) const;
|
||||
|
||||
virtual bool action_match(const Ref<InputEvent> &p_event, bool p_exact_match, float p_deadzone, bool *r_pressed, float *r_strength, float *r_raw_strength) const override;
|
||||
|
||||
Reference in New Issue
Block a user