better paddle key movement
deadlocker8 opened this issue · comments
Robert Goldmann commented
paddle doesn't move instant when holding key
boolean rightPressed
onKeyPressed -> start Thread / notify (only if not running)
onKeyReleased -> stop Thread / wait
if (playedHandlers.isEmpty()) {
synchronized (positionThread) {
positionThread.wait();
}
}