Originally Posted by ZildjianMan5589
This works beautifully!!! I just played a session of Gears of War: Ultimate Edition all from the comfort of the Nintendo Switch in Portable Mode!
@Garlot Do you mind if I ask how you figured this out? Thanks so much again for your help.
No, problem! I can explain what I remember.
First I saw in xbox streaming that anytime I started the sesion, and while in the xbox one main page pressed any "axis" key, the page went to the down as if RZ was pressed.
I tried several .kl configurations: commenting any axis one by one. But didn't work. Anytime axis 0x14 and 0x15 were uncommented any other axis key preseed in the xbox game strream it acted also as if RZ/LZ was pressed. At this point I didn't know what to do, but an apk I tried to change the gamepad button map gave me the clue. In that apk you can test any joycon(or any gamepad connected) button and check the result.
For example you press button "A" and read "BUTTON_A" (or the one you have in your .kl file) with also the value given by the key (axis go from a minimum value to a maximum).
The surprise was that any axis button I pressed it activated also AXIS_GAS and AXIS_BRAKE with values of 1.0, so I needed to get rid of that faulty values.
The only way I found checking Android manual for key layout files was to divide values received for key 0x14 and key 0x15 (LZ and RZ) and assign them to more than one key, so that way I could assign values before 1.0 to some keys not used (as RX and RY for example). That is the meaning of the lines:
axis 0x14 split 0x01 RX BRAKE
axis 0x15 split 0x01 RY GAS
Hope its useful for everyone and maybe someone with this finds a better solution.
By the way, analogs don't work really well. For example in Fifa soccer game, is a pain trying to point where to shot a penalty or a free kick. I guess it's something related with the analog deadzone, but haven't tested it so much.