I’m programming my first Android Game ever and I’m trying to figure out the best way to handle inputs.
Should I handle inputs outright or put them in a queue of some sort and handle them with an updateInputs() method?
Also, where should I put the code for handling inputs? Should it be inside my SurfaceView object or inside of the thread that handles drawing and physics?
Thanks!
I would put them in a queue but execute them right away, incase the processing takes longer then expected you can keep track of what the user has done. As for handling the imputs, i would put it in the surface view, but thats just my general opinion. Im sure there are better ways.
Good luck, I would like to play your game when you finish