I guess I misunderstood this one:Kasumi wrote:I'm not sure we're reading the same things. That's what everyone is saying!
The first statement sounded like the following to me:dougeff wrote:IF your game logic goes longer than 1 frame, the logic will miss a change in button presses event.
[...]
Have a flag for when the game logic is done, and only check buttons if it is set, or something like that.
"The logic might miss a button press if it goes longer than one frame [therefore don't use the controller reading in the game logic but in NMI because then you will never miss controller updates]."
And the second sentence and its talking about a flag sounded like proposing NMI as well. Because when you have controller readings in the game logic anyway, then you don't need any flag specifically for the controller. If you're in the game logic, it's time to update the controller, end.
But the NMI is an interrupt, so controller reading in NMI might require a flag to decide if the controller values should be updated or ignored, based on outside conditions.
That's where I got the idea that this post suggested moving the controller reading to NMI.