Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Shute052 committed Feb 4, 2024
1 parent 017e5bf commit d7b1a3d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion examples/logical_key_bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ fn spawn_player(mut commands: Commands) {
// Query for the `ActionState` component in your game logic systems!
fn jump(query: Query<&ActionState<Action>, With<Player>>) {
let action_state = query.single();
dbg!(action_state);

// Each action has a button-like state of its own that you can check
if action_state.just_pressed(&Action::Forward) {
Expand Down
2 changes: 1 addition & 1 deletion src/user_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ impl From<GamepadButtonType> for UserInput {

impl From<String> for UserInput {
fn from(input: String) -> Self {
UserInput::Single(InputKind::LogicalKey(Key::Character(input.into())))
UserInput::character(input)
}
}

Expand Down

0 comments on commit d7b1a3d

Please sign in to comment.