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

egui feature is not filtering out inputs #604

Open
oxkitsune opened this issue Aug 23, 2024 · 0 comments
Open

egui feature is not filtering out inputs #604

oxkitsune opened this issue Aug 23, 2024 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@oxkitsune
Copy link

Version

0.15.0

Operating system & version

macOs 14.5

What you did

I added the egui feature, and checked for input like:

// input map defined like:
InputMap::default()
  .with(InputAction::Left, MouseButton::Left);

// tested like
if input.pressed(&InputAction::Left) {
	println!("pressed");
} else {
	println!("not pressed");
}

Then when hovering an egui element and clicking the left mouse button, it would still print not pressed.

What you expected to happen

The action update should be filtered out. And therefore not show up as pressed whenever clicking the mouse and hovering
and egui element.

What actually happened

The action wasn't filtered out, and still showed up as pressed.

Additional information

N/A

@oxkitsune oxkitsune added the bug Something isn't working label Aug 23, 2024
@alice-i-cecile alice-i-cecile modified the milestones: 0.15.1, 0.15.2 Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants