mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Use initializer list in Arrays
This commit is contained in:
parent
594d64ec24
commit
75881f8322
72 changed files with 347 additions and 947 deletions
|
|
@ -226,9 +226,7 @@ void ViewPanner::set_force_drag(bool p_force) {
|
|||
}
|
||||
|
||||
ViewPanner::ViewPanner() {
|
||||
Array inputs;
|
||||
inputs.append(InputEventKey::create_reference(Key::SPACE));
|
||||
|
||||
Array inputs = { InputEventKey::create_reference(Key::SPACE) };
|
||||
pan_view_shortcut.instantiate();
|
||||
pan_view_shortcut->set_events(inputs);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue