Hi there!
What is the best way to implement a key (keyboard or controller) configurable input? Have I to add ALL possible keys as Input Trigger and remap them in code? Or is it possible to get the “raw input” in some way?
Thanks!
Hi there!
What is the best way to implement a key (keyboard or controller) configurable input? Have I to add ALL possible keys as Input Trigger and remap them in code? Or is it possible to get the “raw input” in some way?
Thanks!
Yup, just like pokemon, you gotta bind 'em all. The good news is, you can just grab Defold-Input, which has the full list, and a mapping module if you don’t want to make your own, plus a bunch of other goodies.
There is a problem with controller support. You can’t use a controller that hasn’t been specifically mapped, that means your players can’t use a random controller they have, only a list of specifically supported ones. Usually that includes xbox and playstation ones.
@ross.grams Thank you! I will take a look at Defold-Input as you suggested!
@sergey.lerg Thanks! I will look how to implement controller support at a later moment. Now, I don’t understand exactly what “mapped controller” means; but I think that support for xbox and playstation ones is mandatory.