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

Windows: hid_get_feature/input_report return size fix #334

Merged
merged 2 commits into from
Sep 27, 2021
Merged

Conversation

Youw
Copy link
Member

@Youw Youw commented Sep 22, 2021

  • It appears when the numbered reports aren't used,
    WinAPI returns size of the report excluding the data[0] which contains 0,
    as an indication that numbered reports aren't used;
    Explicity count that byte in the result.

Fixes: #328

@Youw Youw requested a review from mcuee September 22, 2021 14:34
- It appears when the numbered reports aren't used,
WinAPI returns size of the report excluding the data[0] which contains 0,
as an indication that numbered reports aren't used;
Explicity count that byte in the result.

Fixes: #328
@mcuee
Copy link
Member

mcuee commented Sep 27, 2021

As mentioned in #328, the fixes for the feature report should be correct.

@mcuee
Copy link
Member

mcuee commented Sep 27, 2021

However, hidapitester can not be used to test the fix to the input report as it uses hid_read_timeout().
#285 (comment)

@Youw Youw merged commit b923aed into master Sep 27, 2021
@Youw Youw deleted the win_fix_feature branch September 27, 2021 10:07
CEnnis91 added a commit to smash64-dev/mupen64plus-libretro-nx that referenced this pull request Nov 13, 2021
git subrepo pull custom/dependencies/hidapi

subrepo:
  subdir:   "custom/dependencies/hidapi"
  merged:   "b66d7c2c"
upstream:
  origin:   "https://github.com/libusb/hidapi.git"
  branch:   "master"
  commit:   "b66d7c2c"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
CEnnis91 added a commit to smash64-dev/mupen64plus-libretro-nx that referenced this pull request Aug 6, 2022
git subrepo pull custom/dependencies/hidapi

subrepo:
  subdir:   "custom/dependencies/hidapi"
  merged:   "b66d7c2c"
upstream:
  origin:   "https://github.com/libusb/hidapi.git"
  branch:   "master"
  commit:   "b66d7c2c"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Windows Related to Windows backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing one byte feature report read under Windows for devices without report id
2 participants