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

mouse-click support in core_basic_screen_manager #23

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tpby2005
Copy link

added initial support for gestures, namely GESTURE_TAP which is used in core_basic_screen_manager, as well as disabling right-click context menu in the game canvas

core_basic_screen_manager, as well as disabling right-click context menu
in the game canvas
raylib.js Outdated Show resolved Hide resolved
raylib.js Show resolved Hide resolved
};
const mouseMove = (e) => {
this.currentMousePosition = {x: e.clientX, y: e.clientY};
};
const gestureTap = (e) => {
this.currentGestureState = gestureMapping.GESTURE_TAP;
Copy link

@RobLoach RobLoach Feb 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will register a GESTURE_TAP if the middle-mouse button is pressed, and never actually release it. I'm not sure this is the intended behavior.

@RobLoach
Copy link

I'd recommend using the mouse events for the actual mouse via #41 , and saving gestures for the WebAPI touch events.

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.

6 participants