Add configurable strength value to InputEventAction
This commit is contained in:
@ -475,6 +475,7 @@ class InputEventAction : public InputEvent {
|
||||
|
||||
StringName action;
|
||||
bool pressed;
|
||||
float strength;
|
||||
|
||||
protected:
|
||||
static void _bind_methods();
|
||||
@ -486,6 +487,9 @@ public:
|
||||
void set_pressed(bool p_pressed);
|
||||
virtual bool is_pressed() const;
|
||||
|
||||
void set_strength(float p_strength);
|
||||
float get_strength() const;
|
||||
|
||||
virtual bool is_action(const StringName &p_action) const;
|
||||
|
||||
virtual bool action_match(const Ref<InputEvent> &p_event, bool *p_pressed, float *p_strength, float p_deadzone) const;
|
||||
|
||||
Reference in New Issue
Block a user