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

Add mouse click #6

Closed
jtroo opened this issue Apr 24, 2022 · 3 comments
Closed

Add mouse click #6

jtroo opened this issue Apr 24, 2022 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@jtroo
Copy link
Owner

jtroo commented Apr 24, 2022

This should be more easily cross platform than replicating the whole mouse.

Here's my use case: I have a trackball that is great for scrolling and movement but I don't like it much for clicking. So instead, when paired with my QMK board, I click with my left hand using the keyboard and navigate+scroll with my right hand using the trackball.

@jtroo jtroo added enhancement New feature or request good first issue Good for newcomers labels Apr 24, 2022
@jtroo
Copy link
Owner Author

jtroo commented Apr 26, 2022

@jtroo
Copy link
Owner Author

jtroo commented Apr 26, 2022

In Linux, these look promising. Haven't tested or confirmed on the internet though.

            272 => Some(OsCode::BTN_LEFT),
            273 => Some(OsCode::BTN_RIGHT),
            274 => Some(OsCode::BTN_MIDDLE),
            275 => Some(OsCode::BTN_SIDE),
            276 => Some(OsCode::BTN_EXTRA),
            277 => Some(OsCode::BTN_FORWARD),
            278 => Some(OsCode::BTN_BACK),

@jtroo
Copy link
Owner Author

jtroo commented Apr 27, 2022

Implemented in 76cebbf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant