love.keyboard.isDown() error [SOLVED]
Posted: Mon Nov 19, 2018 6:12 am
The following code:
Gives me the error:
What am I missing? I couldn't find anything in the documentation about love.keyboard being deprecated.
EDIT: Of course I figured it out one minute after I posted this...
I had
in my conf.lua. Setting it to true solved the problem.
Oops....
I guess I'll leave this thread up for anybody who repeats my mistake.
Code: Select all
function love.update(dt)
if love.keyboard.isDown('h') then
print('h')
end
end
Code: Select all
attempt to index field 'keyboard' (a nil value)
EDIT: Of course I figured it out one minute after I posted this...
I had
Code: Select all
t.modules.keyboard = false
Oops....
I guess I'll leave this thread up for anybody who repeats my mistake.