Skip to content

Add support for HIDIOCSFEATURE and HIDIOCGFEATURE #1

@FFY00

Description

@FFY00

I have no use for it, and it is not trivial, so I can't justify the time implementing it. My initial try:

    def get_feature(self, report_id: int, size: int = 1024) -> List[int]:
        '''
        Get HID feature
        '''
        buf = array.array('B', [report_id, 0x00, 0x00, 0x00])

        ioctl.IOCTL.IOR(
            'H', self.HIDIOCGFEATURE, size
        ).perform(self._fd, buf=buf)

        return buf.tolist()

Anyone feel free to pick this up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions