NTS716
NTS716

Reputation: 71

Love2d Should all inputs be in main.lua

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

Answers (1)

Paul Kulchenko
Paul Kulchenko

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

Related Questions