Kha icon indicating copy to clipboard operation
Kha copied to clipboard

Implement gamepad vendor and id attributes in Krom and HL backends

Open MoritzBrueckner opened this issue 3 years ago • 4 comments

gamepad.vendor and gamepad.id currently always return unknown on Krom and empty strings on Hashlink, even though the functionality seems to be implemented in Kinc, at least on Windows and Linux.

Some more context and potentially a Kinc issue (still need to investigate more): https://forums.armory3d.org/t/problem-with-gamepad-sticks-logic-nodes/5087

MoritzBrueckner avatar Dec 17 '22 00:12 MoritzBrueckner

Hey @Onek8, feel free to post comments with code or better yet send pull requests. But I'll delete zips posted without comment without looking into them.

RobDangerous avatar Jun 17 '23 13:06 RobDangerous

Sorry, I was just sharing the patch that works for linux tested with xbox generic controller, ps4 and ps5. Basically just added the extra axis when triggers + dpad come in as axis and not buttons to trigger the actual button index. It didnt seem like a real fix so I figured it would be best to archive it until it was further investigated. Thank you for explaining the deletion, no zips :)

Onek8 avatar Jun 17 '23 19:06 Onek8

That's appreciated but please use uncompressed text. You can simply do a git diff and upload that for example - that way everyone can directly see what they get.

RobDangerous avatar Jun 17 '23 21:06 RobDangerous

Linking to https://github.com/Kode/Kha/pull/1473, the HL part is implemented now.

MoritzBrueckner avatar Oct 24 '23 16:10 MoritzBrueckner