Skip to content

Should probably use native windows APIs on Windows #7

Description

@tksuoran

One Windows, it would probably make sense to use Windows raw input and HidP APIs

Useful headers:

  • hidsdi.h
  • hidusage.h
  • hidpi.h

Useful functions:

  • RegisterRawInputDevices()
  • GetRawInputDeviceInfo()
  • HidP_GetLinkCollectionNodes()
  • HidP_GetUsages()
  • HidP_GetScaledUsageValue()
  • HidP_GetButtonCaps()
  • HidP_GetValueCaps()

Using these APIs, there is no need to rely on any information about devices hard coded into the "driver" code. Everything needed can be queried using HidP API.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions