Quick fix: 'Esc' key not properly checked in splash screen.
Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
parent
71edef2fa9
commit
f71b2c25f2
|
@ -144,12 +144,14 @@ public class Splash extends BasicGameState {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void keyPressed(int key, char c) {
|
public void keyPressed(int key, char c) {
|
||||||
|
if (key == Input.KEY_ESCAPE) {
|
||||||
// close program
|
// close program
|
||||||
if (++escapeCount >= 3)
|
if (++escapeCount >= 3)
|
||||||
container.exit();
|
container.exit();
|
||||||
|
|
||||||
// stop parsing OsuFiles by sending interrupt to OsuParser
|
// stop parsing OsuFiles by sending interrupt to OsuParser
|
||||||
else if (key == Input.KEY_ESCAPE && thread != null)
|
else if (thread != null)
|
||||||
thread.interrupt();
|
thread.interrupt();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user