Searching how i could remap inputs for player, i was thinking first of this:
filling game.input_binding with all possible values. Then the player could chose in a menu which key he wants for an action, and in on_input i could test the stored value.
Reading the forum, i landed on this page:
It seems less overkill (avoid to send a message to on_input for each pressed key), but i have questions:
The web page above says: The all.input_bindings does this and it’s recommended to use this file , but the link it gives is dead.
Then i see it’s on Britzl github, so this method is not integrated in the Defold’s engine, isn’t it ?
What is in named directory given in the sample ? Is it part of Defold sources ? Is it usable directly from a lua script in Defold ? Should it be copied somewhere in the project path before ?
(i’m speaking of this) :
local mapper = require "in.mapper"
local triggers = require "in.triggers"