-
-
Notifications
You must be signed in to change notification settings - Fork 710
Hid feature report #18150
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
Hid feature report #18150
Conversation
identifier, a 128 bit identifier unique to NVDA is now sent as a HID feature report, enabling a Braille display to identify that the connection is coming from NVDA.
identifier, a 128 bit identifier unique to NVDA is now sent as a HID feature report, enabling a Braille display to identify that the connection is coming from NVDA.
…tzmacher/nvda into hid_feature_report
source/hwIo/hid.py
Outdated
class HidFeatureReport(HidReport): | ||
_reportType = hidpi.HIDP_REPORT_TYPE.FEATURE | ||
|
||
def __init__(self, device, reportID=0): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add type hints
source/hwIo/hid.py
Outdated
super().__init__(device) | ||
|
||
@property | ||
def data(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add a return type
source/hwIo/hid.py
Outdated
def data(self): | ||
return self._reportBuf.raw | ||
|
||
def setUsageValueArray(self, usagePage, linkCollection, usage, data): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add type hints
…f section about screen reader identifier Co-authored-by: Sean Budd <[email protected]>
@FelixGruetzmacher - is this ready for re-review? |
Closing as abandoned |
Link to issue number:
Does not apply
Summary of the issue:
A HID Braille device can expect a screen reader identifier that signifies to the device what screen reader has initiated communication. Currently, NVDA ignores this.
Description of user facing changes
No immediate changes of behavior.
Description of development approach
The HID Braille driver queries the report descriptor for the presence of the screen reader identifier usage in the feature report. If the usage is found, then as part of initialization, a UUID signifying NVDA (newly generated from a source of random numbers) is sent as the screen reader identifier.
Testing strategy:
Tested against Help Tech HID devices with and without this usage in their report descriptors.
Known issues with pull request:
None.
Code Review Checklist:
@coderabbitai summary