Reputation: 71
I am able to put inputs in modules, and it works fine, but am I not seeing a hidden downside to doing this? Should all inputs from the user be in main.lua?
Upvotes: 1
Views: 116
Reputation: 26764
If by "inputs" you mean love.keypressed
, love.keyreleased
and other methods related to user input, then the answer is "no", they don't need to be in main.lua
and there is no downside to putting them elsewhere as long as you load those modules/files from your script.
Upvotes: 2