Updated BSInputEventKey's action_match parameters.

This commit is contained in:
Relintai 2022-03-16 10:45:57 +01:00
parent 1b3f8db220
commit fd41c321a5
2 changed files with 2 additions and 3 deletions

View File

@ -51,8 +51,7 @@ void BSInputEventKey::from_input_event_key(const Ref<InputEventKey> event) {
set_echo(event->is_echo());
}
bool BSInputEventKey::action_match(const Ref<InputEvent> &p_event, bool *p_pressed, float *p_strength, float p_deadzone) const {
bool BSInputEventKey::action_match(const Ref<InputEvent> &p_event, bool p_exact_match, bool *p_pressed, float *p_strength, float *p_raw_strength, float p_deadzone) const {
Ref<InputEventKey> key = p_event;
if (key.is_null())
return false;

View File

@ -36,7 +36,7 @@ class BSInputEventKey : public InputEventKey {
public:
void from_input_event_key(const Ref<InputEventKey> p_event);
virtual bool action_match(const Ref<InputEvent> &p_event, bool *p_pressed, float *p_strength, float p_deadzone) const;
virtual bool action_match(const Ref<InputEvent> &p_event, bool p_exact_match, bool *p_pressed, float *p_strength, float *p_raw_strength, float p_deadzone) const;
BSInputEventKey();