-
Notifications
You must be signed in to change notification settings - Fork 403
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
Windows: Bluetooth and WriteFile API issues #513
Comments
https://www.bluetooth.com/specifications/specs/human-interface-device-service-1-0/ |
https://www.usb.org/document-library/device-class-definition-hid-111 |
The later only proves that we cannot unconditionally replace As for bug "WriteFile() doesn't work correctly" I think we could have a per-device, WinAPI-specific option to use Or do you think we can predict for which devices |
As far as I understand, in BLE case API works like this: According to the HIDS spec But seems some devices are not declaring I'll try to debug this to find out more. |
Would be great to figure out if it is possible to check its support over WinAPI before trying to use |
Looks like Windows Bluetooth drivers have issues with sending output reports with
WriteFile
.Need to investigate this and try to use
HidD_SetOutputReport
as a fallback.https://stackoverflow.com/questions/29480144/hidapi-sending-packet-smaller-than-caps-outputreportbytelength
https://social.msdn.microsoft.com/Forums/ie/en-US/834d2cf2-672d-424b-a126-dbc69f3f75a2/hiddsetoutputreportwritefile-bluetooth-low-energy-windows-81
Related libsdl-org/SDL#7224
The text was updated successfully, but these errors were encountered: