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

Input blocking / input event consuming #384

Open
ssoher opened this issue Mar 14, 2024 · 2 comments
Open

Input blocking / input event consuming #384

ssoher opened this issue Mar 14, 2024 · 2 comments
Labels
feature request new feature to be added

Comments

@ssoher
Copy link
Contributor

ssoher commented Mar 14, 2024

Currently if user clicks where two controls overlap, both controls activate. The first control that is drawn on top should "consume" the input event and the one behind that should not get activated in such cases.

@raysan5 raysan5 added the feature request new feature to be added label May 7, 2024
@raysan5 raysan5 changed the title [Feature Request] Input Blocking / Input Event Consuming Input blocking / input event consuming May 7, 2024
@raysan5
Copy link
Owner

raysan5 commented May 7, 2024

@ssoher Events consumption does not depend on raygui but on the underlying inputs mnagement layer, in this case raylib. It seems an issue that could only affects on some specific use cases, dependant on UI design.

@ssoher
Copy link
Contributor Author

ssoher commented May 7, 2024

If the assumption is "GUI controls can never ever overlap" then in its current state there is no problem. But when we allow the user to alter the GUI dynamically (move, scale) then it becomes a problem. But I understand if it's the library user's responsibility to track the state of input and check if any gui item is already interacted with in a given frame so that other controls return early/don't do anything.

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

No branches or pull requests

2 participants