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

Unclear how to listen for right mouse button press with macOS trackpad #1

Open
xpe opened this issue Jun 8, 2023 · 1 comment
Open

Comments

@xpe
Copy link

xpe commented Jun 8, 2023

I don't have a mouse connected; only a trackpad. The usual macOS gesture to emulate a right mouse press (the two finger trackpad press) isn't working. It isn't (yet) clear to me how to handle a right click via trackpad with kiss3d. (Update: maybe Button3 instead of Button2?)

Anyhow, for now, I reworked the code to listen for Key::M to make a move.

            WindowEvent::Key(Key::M, action, _modif) => {
                if action != Action::Release {
                    return;
                }
                
                // Try to add a token.
                // ...
@xpe xpe changed the title macOS trackpad Unclear how to listen for right mouse button press with macOS trackpad Jun 8, 2023
@dimonomid
Copy link
Owner

dimonomid commented Jun 25, 2023

Hey, thanks for the interest in this little project.

Tbh I'm not a mac user and I don't have a way to test it at all. Lmk if you find a solution.

However, I'm confused by this:

Anyhow, for now, I reworked the code to listen for Key::M to make a move.

Why would making a move be a problem here? Right click in kiss3d is only needed for moving the 3D model around, it's not about placing a token. To place a token, a simple left click should be used.

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