I’v started learning OpenGL and am a bit stuck! I’v got a polygon to rotate around its centre but wish to be able to control it through the keyboard. I’v managed this and it changes direction when I press the LEFT/RIGHT keys Once!!! I want my polygon to move only when I hold down the keys, not when I just press once.
Is this something to do with
I’v put my method in keyPressed
Does anyone have any ideas? Thanks very much, this is really confusing me
btw I’m using C++.