I have my following (static) KeyListener http://pastebin.com/gR1i3Xzb
and this is my update Method:
@Override
public void update()
{
input();
/*...*/
}
private void input()
{
if (KeyBinding.downDown)
{
nextEntry();
}
else if (KeyBinding.upDown)
{
previousEntry();
}
}
someone has an idea to make single presses?
Let's say I have a menu. If I press the Down key for a short amount of time, many menu entries are skipped. But I want to take the next menu entry only once.