aevyrie / bevy_mod_picking

Picking and pointer events for Bevy.
https://crates.io/crates/bevy_mod_picking
Apache License 2.0
764 stars 170 forks source link

keyboard_input : Res<Input<KeyCode>> - not working after import of bevy_mod_picking #323

Closed ajerni closed 5 months ago

ajerni commented 5 months ago

It seems that there is a conflict between the Input type from Bevy's input module and the Input type from the bevy_mod_picking crate. The bevy_mod_picking crate defines its own Input type as part of the PickSet enum, which is causing the confusion.

bevy = { version = "0.13.1", features = ["dynamic_linking"] } bevy_mod_picking = "0.18.2"

Solution: In bevy 0.13 it is Res<ButtonInput<KeyCode>> now :-)

ajerni commented 5 months ago

Bevy migration guide 0.12 to 0.13 gave the solution.