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

Plugin interferes with handrolled picking functionality, but only when using left click #188

Closed
alice-i-cecile opened this issue Feb 3, 2023 · 4 comments

Comments

@alice-i-cecile
Copy link

Encountered during Leafwing-Studios/Emergence#262

On this branch, my tile picking logic was behaving bizarrely: only Shift + Click was working, while simple click and control click were used directly. Use Leafwing-Studios/Emergence@14344f1 to test.

I at first thought I had a bizarre input binding / clash bug in leafwing_input_manager, that was somehow working previously. However, moving the keybindings to MouseButton::Right rather than MouseButton::Left fully resolved the issue.

I think that this plugin is subtly messing with the left mouse inputs in very surprising ways? I'd have to dig through.

For now, I think my next step is to drop down into bevy_mod_raycast, as I'm not using the more premade functionality exposed by this crate.

@alice-i-cecile
Copy link
Author

Resolved by swapping to a simpler bevy_mod_raycast solution: Leafwing-Studios/Emergence@c661fd1

@aevyrie
Copy link
Owner

aevyrie commented Feb 3, 2023

Are you using the beta branch, or crates.io?

If you're on beta, defaults inputs can be disabled, and you can use whatever you want to trigger input eveents.

@alice-i-cecile
Copy link
Author

Currently on the crates.io form :) I wanted to test the old API first to have a better opinions.

@aevyrie
Copy link
Owner

aevyrie commented Jun 17, 2023

Closing as inputs are now completely decoupled from plugin logic.

@aevyrie aevyrie closed this as completed Jun 17, 2023
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

2 participants