none
multiple pen in a collection ? RRS feed

  • Question

  • Hello:

    Is it possible to define multiple pens in a USB HID report descriptor ? I'm aware of typical pen collection but not sure if I can define more than one pen in the same collection? If so what would be the UsagePage and UsageID of the "pen count" ?

    Thanks in advance!


    leo

    Tuesday, May 7, 2019 9:54 PM

Answers

  • I think you will need to have multiple top level collections in your hid descriptor (but no need for a composite device).

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    • Marked as answer by SJ-Hills Wednesday, May 8, 2019 2:55 PM
    Wednesday, May 8, 2019 1:52 PM

All replies

  • I think that you would have to define it as a composite device

     -Brian


    Azius Developer Training www.azius.com Windows device driver, internals, security, & forensics training and consulting. Blog at www.azius.com/blog

    Tuesday, May 7, 2019 11:13 PM
    Moderator
  • any reason why cannot define multiple pen in one collection just like defining multiple touches in a collection ?

    leo

    Wednesday, May 8, 2019 12:56 AM
  • I don't know that anyone has ever tried this. It may work if your hardware supports multiple simultaneous pens, but if it doesn't then describe them as multiple pens in a composite device. Regardless of how the HID descriptors are defined, Windows takes exclusive ownership of all input devices, so whether you have multiple mice or pens or whatever, input from each device is added to the Windows input message queue.

     -Brian


    Azius Developer Training www.azius.com Windows device driver, internals, security, & forensics training and consulting. Blog at www.azius.com/blog

    Wednesday, May 8, 2019 1:03 AM
    Moderator
  • I think you will need to have multiple top level collections in your hid descriptor (but no need for a composite device).

    d -- This posting is provided "AS IS" with no warranties, and confers no rights.

    • Marked as answer by SJ-Hills Wednesday, May 8, 2019 2:55 PM
    Wednesday, May 8, 2019 1:52 PM