You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 10, 2021. It is now read-only.
I just spent a bit of time figuring out that the reason :down(..) would work but :pressed(..), etc. wouldn't was because I was calling input:update() before checking the state of the inputs.
It might be worth highlighting this in the README.md with an example :)
For example:
function love.update(dt)
if input:pressed('down') then print('down was pressed!') end
-- your other input checks here..
input:update()
end
The text was updated successfully, but these errors were encountered:
I just spent a bit of time figuring out that the reason
:down(..)
would work but:pressed(..)
, etc. wouldn't was because I was callinginput:update()
before checking the state of the inputs.It might be worth highlighting this in the
README.md
with an example :)For example:
The text was updated successfully, but these errors were encountered: