Hi everyone,
I work for create my own controller.
I tested with an test controller and it works.
My test :
I added all the keys on input_binding and did the script.
function init(self)
msg.post(".", "acquire_input_focus")
end
function on_input(self, action_id, action)
if action.pressed then
if action_id == hash("X") then
print("X")
elseif action_id == hash("Y") then
print("Y")
elseif action_id == hash("A") then
print("A")
elseif action_id == hash("B") then
print("B")
end
end
end
But it doesânt work on Defold
I use it as a controller.
Do you have any idea of the problem ?
Thanks for advance !!!