How do I get ludobits input to work? (SOLVED)

Hi, I’m trying to run the breakout game from the defold public examples on github. There’s a line in the paddle.script:

local input = require "ludobits.m.input"

I downloaded ludobits.zip and put a copy of the extracted ludobits folder into the project that I’m working on, but when I try to run the game I get this message…

“The file ‘/ludobits/m/input.lua’ could not be found.”

I’ve tried putting it in the same folder as the script that references it and also in the input bindings folder but none of them seem to work. How should I set this up so the file can be found? Cheers.

You should add Ludobits as a dependency. Open game.project, scroll to Dependencies. Click the plus-sign. Add https://github.com/britzl/ludobits/archive/1.3.5.zip

1 Like

cool, that worked thanks