Workaround for buttonless Controllers#49
Conversation
|
This looks reasonable. Can you please update it to fix the conflict - it's happening due to the new standardised formatting. |
|
Also, please remove the |
eg:
device:
- input_name: "Thrustmaster T-Rudder"
output_name: "T-Rudder"
product_id: 0x1234
dummy_buttons: [304, 305]
remappings: {}
|
I did that and also made it configurable instead of hardcoded. Explaination for the docs: What now works for my setup for DCS: My config: This works now (with default product_id it gets ignored). I also added the thrupassing of input ids/product, because some games (like DCS) depend on orginal names and ids (thats why I also added the outputname) In wine it may be need to get whitelisted as well via But often its not necessary |
|
nb: the fixed/passed thru productid was also necessary because otherwise DCS creates a new profile every run (UInput randomizes them otherwise) |
philipl
left a comment
There was a problem hiding this comment.
Alright.
Please rebase and make sure the change passes linting and formatting. Also, please add an example to the sample file - that's our primary source of documentation.
Thanks.
* formatting * only set overrides if explicitly specified * typo * formatting * names * reusing * linting
|
Thanks for updating everything. You still need to rebase onto master before I can merge it as github is reporting conflicts. Also, please update the PR description to reflect the final state, as that will be what is used for the squashed commit. Thanks again! |

Some controllers as the Thrustmaster T-Rudder have no buttons and thus throw an KeyError.
Test buttons first and insert an empty set for the buttons fixes not only this issue but also makes evdevremapkeys and excellent tool to add those controllers to steam/wine/proton, as thats ignoring controllers without buttons :)
To make those work just create an empty mapping like this: