catch escape key in overlay
This commit is contained in:
parent
7bd3c22b8a
commit
7ae70c7c16
|
@ -126,6 +126,12 @@ public class SBOverlay {
|
||||||
index++;
|
index++;
|
||||||
setMusicPosition();
|
setMusicPosition();
|
||||||
updateIndex(index);
|
updateIndex(index);
|
||||||
|
} else if (key == Input.KEY_ESCAPE && menu) {
|
||||||
|
menu = false;
|
||||||
|
if (speed != 0) {
|
||||||
|
MusicController.resume();
|
||||||
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user