Propagate allowed input types to `event_listener` when setting them on `InputEventConfigurationDialog`

This commit is contained in:
Eric M 2023-01-10 23:26:33 +10:00
parent 269fa200d0
commit 3bf06e955e
3 changed files with 4 additions and 3 deletions

View File

@ -168,8 +168,8 @@ void EventListenerLineEdit::clear_event() {
}
}
void EventListenerLineEdit::set_allowed_input_types(int input_types) {
allowed_input_types = input_types;
void EventListenerLineEdit::set_allowed_input_types(int p_type_masks) {
allowed_input_types = p_type_masks;
}
int EventListenerLineEdit::get_allowed_input_types() const {

View File

@ -67,7 +67,7 @@ public:
Ref<InputEvent> get_event() const;
void clear_event();
void set_allowed_input_types(int input_types);
void set_allowed_input_types(int p_type_masks);
int get_allowed_input_types() const;
void grab_focus();

View File

@ -515,6 +515,7 @@ Ref<InputEvent> InputEventConfigurationDialog::get_event() const {
void InputEventConfigurationDialog::set_allowed_input_types(int p_type_masks) {
allowed_input_types = p_type_masks;
event_listener->set_allowed_input_types(p_type_masks);
}
InputEventConfigurationDialog::InputEventConfigurationDialog() {