Input class has a
isKeyPressed() method that returns a boolean value according to whether the specified key has been pressed. I want to check if a key has been released in the same fashion.
I looked into adding a
KeyListener to the input object, and overriding the
keyReleased() method. However, because I am currently handling input in the
update() method of my
BasicGame, this would fracture my code by handling input in two different places, which I'd like to avoid.