godot-rust / godot-rust/gdext

Omit the &self parameter for functions on engine singletons

Open
#127 8 comments 0 reactions 0 assignees View on GitHub
breaking-change c: engine quality-of-life
Dominant language
Rust
Stars
5.2k
Forks
312
Avg merge
11h 10m
Merged PRs (30d)
10

Description

Instead of `Input::singleton().is_key_pressed()` you should just be able to write `Input::is_key_pressed()`. It's shorter, closer to GDScript, more Rusty, and avoids the overloaded word "singleton" which can also refer to an autoload.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.