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 support for 8 buttons to mouse report #10807

Merged
merged 8 commits into from
Jan 27, 2021

Conversation

drashna
Copy link
Member

@drashna drashna commented Oct 30, 2020

This includes support for 8 buttons in mousekeys. However, this does move the keys around due to the fact that the last mousekey keycode is already 0xFF, so any past that would not work with register_code and the like, breaking them for tap hold keys, encoders, and other features.

Types of Changes

  • Core
  • Bugfix
  • New feature
  • Enhancement/optimization
  • Keyboard (addition or update)
  • Keymap/layout/userspace (addition or update)
  • Documentation

Checklist

  • My code follows the code style of this project: C, Python
  • I have read the PR Checklist document and have made the appropriate changes.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • I have tested the changes and verified that they work and don't break anything (as well as I can manage).

Copy link
Member

@fauxpark fauxpark left a comment

Choose a reason for hiding this comment

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

Some minor nitpicks :)

tmk_core/protocol/usb_descriptor.c Outdated Show resolved Hide resolved
tmk_core/common/keycode.h Outdated Show resolved Hide resolved
docs/feature_pointing_device.md Outdated Show resolved Hide resolved
tmk_core/common/report.h Outdated Show resolved Hide resolved
@fauxpark
Copy link
Member

Also, the VUSB code should be updated as well.

@drashna
Copy link
Member Author

drashna commented Oct 30, 2020

I did not realize that VUSB used it's own set of descriptors. But fixed. Same with nitpicks.

@drashna drashna requested a review from a team October 30, 2020 21:04
tmk_core/protocol/vusb/vusb.c Outdated Show resolved Hide resolved
@drashna drashna requested a review from a team October 31, 2020 12:04
tmk_core/common/keycode.h Outdated Show resolved Hide resolved
@drashna drashna added the breaking_change Changes that need to wait for a version increment label Nov 7, 2020
@drashna drashna force-pushed the improve_mouse_reports branch from 8da464f to b4a0a51 Compare November 7, 2020 07:00
@drashna drashna requested a review from a team November 12, 2020 00:26
@noroadsleft noroadsleft deleted the branch qmk:develop November 28, 2020 20:02
@tzarc tzarc reopened this Nov 28, 2020
@drashna drashna force-pushed the improve_mouse_reports branch from b4a0a51 to d7f6028 Compare November 28, 2020 23:55
This includes support for 8 buttons in mousekeys.  However, this does move the keys around due to the fact that the last mousekey keycode is already 0xFF, so any past that would not work with register_code and the like, breaking them for tap hold keys, encoders, and other features.
Because drashna red gud
@drashna drashna force-pushed the improve_mouse_reports branch from d7f6028 to d233b12 Compare December 4, 2020 16:56
@tzarc tzarc merged commit 99f3df2 into qmk:develop Jan 27, 2021
@drashna drashna deleted the improve_mouse_reports branch February 4, 2021 01:53
matthewdias pushed a commit to matthewdias/qmk_firmware that referenced this pull request Mar 27, 2021
jiaxin96 pushed a commit to Oh-My-Mechanical-Keyboard/qmk_firmware that referenced this pull request Oct 18, 2023
BorisTestov pushed a commit to BorisTestov/qmk_firmware that referenced this pull request May 23, 2024
* Add support for 8 buttons to mouse report

This includes support for 8 buttons in mousekeys.  However, this does move the keys around due to the fact that the last mousekey keycode is already 0xFF, so any past that would not work with register_code and the like, breaking them for tap hold keys, encoders, and other features.

* Update mouse key docs

* Add changes based on feedback

* Fix VUSB report size comment

Because drashna red gud

* Fix typo in action.c

* Fix IS_MOUSE_BUTTON check

* Change start range for mousekeys so that the end is 0xFF properly

* condense mousekeys check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking_change Changes that need to wait for a version increment core documentation translation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants