Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Updating libcmmk to call hid_write() correctly on all platforms#34

Open
Chr1sNo wants to merge 1 commit intochmod222:masterfrom
Chr1sNo:master
Open

Updating libcmmk to call hid_write() correctly on all platforms#34
Chr1sNo wants to merge 1 commit intochmod222:masterfrom
Chr1sNo:master

Conversation

@Chr1sNo
Copy link

@Chr1sNo Chr1sNo commented Aug 4, 2021

This issue was detected in OpenRGB by Windows users unable to interact with their Coolermaster Keyboards

Writes to devices that don't use Report IDs require a prepended 0x00 byte as per hidapi library spec

https://github.com/libusb/hidapi/blob/master/hidapi/hidapi.h#L218

  • All write buffers have been edited to add 0x00 @ byte 0
  • Indexes and memcpy()'s have been edited to accomodate

Writes to devices that don't use Report IDs require a prepended `0x00` byte as per hidapi library spec

https://github.com/libusb/hidapi/blob/master/hidapi/hidapi.h#L218
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant