I have a generic USB controller from a Brazilian brand based on a Chinese layout (Shanwan) that, despite installing the driver that comes with the Retropie and correctly configuring the digital inputs, does not correctly map all axis of the analog sticks.
I would like to use this opportunity to learn more about device debug, USB driver creation and reverse engineering USB devices to contribute to the open source community in that matter.
I want to know which Linux tools, references and documentation can describe this process of making a custom driver and allow the reading of raw USB serial data to remap this raw outputs to a retropie-friendly output.