Maybe not an issue but more of a question.
Right now I call
playdate.inputhandlers.push(myInputHandlers)
In the first line of my playdate.update()
It works but is there a better place to call it?
Maybe not an issue but more of a question.
Right now I call
playdate.inputhandlers.push(myInputHandlers)
In the first line of my playdate.update()
It works but is there a better place to call it?
You don’t want to be pushing to the input handler stack 30+ times per second. Push once outside the update loop (or in your initialisation function if you have one). Then only push again if you need to change inputs, and pop to get back to original inputs.
Thank you.
That’s what I thought but it was working without much testing