thank you that sorted the switch problem.
However i’m looking at the way the variable shown within (shipAcc_y) incriments. And in the console window, it’s showing that whenever I press the w key the variable changes to -1610612736.
Can you tell what i’m doing wrong?
Note: shipAcc_y is defined in the global scope as i use it in my display loop later on in order to make a ship move. (I’m trying to create a space ship that accelerates and decelerates in given directions)