02-10-2023, 06:28 AM
That's correct. I assign the key references to an array, scan through the array on each loop iteration where input is relevant, and update button states in two other arrays - one for whether each button is pressed on this iteration, and one for last iteration. It sounds like lots of work, but once you set it up, it's actually simpler than other methods at the front end. It also makes implementing user-defined controls very easy.
I'm at work now, but if you're interested, I can share more when I'm home.
I'm at work now, but if you're interested, I can share more when I'm home.