Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page on keyboard input needs to have Input renamed to ButtonInput #281

Open
boreq opened this issue May 16, 2024 · 0 comments
Open

Page on keyboard input needs to have Input renamed to ButtonInput #281

boreq opened this issue May 16, 2024 · 0 comments

Comments

@boreq
Copy link

boreq commented May 16, 2024

Right now the page uses Input in the first example. It should be ButtonInput in v0.13 instead.

Old:

fn keyboard_input(
    keys: Res<Input<KeyCode>>,
) {

New:

fn keyboard_input(
    keys: Res<ButtonInput<KeyCode>>,
) {

I started preparing a pull request before I read that this isn't welcome, maybe this is useful to illustrate the problem.

boreq/bevy-cheatbook@main...boreq:keyboard-013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant