First I think in the old style, on key pressing check the state and do the code.
But you are right, I can use the state as a "key pressed" event holder and the code will be done.
How I can understand which stete is enabled?pgimeno wrote: ↑Sun Apr 11, 2021 11:04 am I wrote about one way of dealing with states, starting here: https://love2d.org/forums/viewtopic.php ... 26#p194226
Take a look, see if that helps you wrap around your head around it.
Something like
Code: Select all
require ("main-old")
-- require ("main-new")