catch escape key in overlay

This commit is contained in:
yugecin 2016-11-13 00:41:04 +01:00
parent 7bd3c22b8a
commit 7ae70c7c16

View File

@ -126,6 +126,12 @@ public class SBOverlay {
index++;
setMusicPosition();
updateIndex(index);
} else if (key == Input.KEY_ESCAPE && menu) {
menu = false;
if (speed != 0) {
MusicController.resume();
}
return true;
}
return false;
}