Giter Site home page Giter Site logo

Comments (4)

jfedor2 avatar jfedor2 commented on August 16, 2024

One issue is that the number of reports is hardwired so you also have to update MAX_INPUT_REPORT_ID in our_descriptor.h.

Another is that HID Remapper doesn't currently support array inputs in its own descriptor so you'd have to rewrite the report descriptor without the array.

Something like:

Report ID 4
Report Size 1
Report Count 3
Usage Sys Sleep
Usage Sys Power Down
Usage Sys Wake Up
Input Data,Var,Abs
Report Count 5
Input Const,Var,Abs

from hid-remapper.

alnat2 avatar alnat2 commented on August 16, 2024

I changed the MAX_INPUT_REPORT_ID to 4. But since I'm not a programmer, I didn't understand in which structure to implement the report descriptor. @jfedor2, would you be able to provide guidance on how to rewrite the report descriptor without using an array and where it should be placed within the file? Thank you for your assistance.

from hid-remapper.

jfedor2 avatar jfedor2 commented on August 16, 2024

Try adding this to the descriptor:

    0x05, 0x01,  // Usage Page (Generic Desktop Ctrls)
    0x09, 0x80,  // Usage (Sys Control)
    0xA1, 0x01,  // Collection (Application)
    0x85, 0x04,  //   Report ID (4)
    0x75, 0x01,  //   Report Size (1)
    0x95, 0x03,  //   Report Count (3)
    0x09, 0x81,  //   Usage (Sys Power Down)
    0x09, 0x82,  //   Usage (Sys Sleep)
    0x09, 0x83,  //   Usage (Sys Wake Up)
    0x81, 0x02,  //   Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
    0x95, 0x05,  //   Report Count (5)
    0x81, 0x03,  //   Input (Const,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
    0xC0,        // End Collection

Or see here: c22ef7f

from hid-remapper.

alnat2 avatar alnat2 commented on August 16, 2024

It works, thank you

from hid-remapper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.