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

Using canvas id provided by Module for event binding #4690

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

zet23t
Copy link
Contributor

@zet23t zet23t commented Jan 14, 2025

This change is replacing the hardcoded "#canvas" element references in rcore_web to allow using canvas elements that use different names (which is necessary when using multiple canvas elements on one page).

Also adding a cursor hiding example to test this functionality in browser.

@zet23t zet23t force-pushed the allow-custom-canvas-ids-fix branch 2 times, most recently from eb582ff to 6c56191 Compare January 15, 2025 15:31
This change is replacing the hardcoded "#canvas" element references in
rcore_web to allow using canvas elements that use different names
(which is necessary when using multiple canvas elements on one page).

Also adding a cursor hiding example to mouse example.
@zet23t zet23t force-pushed the allow-custom-canvas-ids-fix branch from 6c56191 to 5bebeae Compare January 15, 2025 15:31
@raysan5 raysan5 merged commit 5c1cce2 into raysan5:master Jan 15, 2025
14 checks passed
@raysan5
Copy link
Owner

raysan5 commented Jan 15, 2025

@zet23t Very nice improvement! Thanks for the review! 😄

ngynkvn pushed a commit to ngynkvn/raylib that referenced this pull request Jan 21, 2025
This change is replacing the hardcoded "#canvas" element references in
rcore_web to allow using canvas elements that use different names
(which is necessary when using multiple canvas elements on one page).

Also adding a cursor hiding example to mouse example.
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

Successfully merging this pull request may close these issues.

2 participants