mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Propagate allowed input types to event_listener
when setting them on InputEventConfigurationDialog
This commit is contained in:
parent
269fa200d0
commit
3bf06e955e
3 changed files with 4 additions and 3 deletions
|
@ -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 {
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue