keyPressed event slow on first repeat
问题 Okay so I am sorry for this being a really weird question but it is driving me insane. I handle my WASD movement for my game via: Action ClassWASDKeyPressed = new ClassWASDKeyPressed(); Action ClassWASDKeyReleased = new ClassWASDKeyReleased(); BitKeys movementBitKeys = new BitKeys(); //for WASD movement key pressed/releases //pressed theDesktop.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("W"), "wButtonPress"); theDesktop.getActionMap().put("wButtonPress",