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) {
|
||||||
// close program
|
if (key == Input.KEY_ESCAPE) {
|
||||||
if (++escapeCount >= 3)
|
// close program
|
||||||
container.exit();
|
if (++escapeCount >= 3)
|
||||||
|
container.exit();
|
||||||
// stop parsing OsuFiles by sending interrupt to OsuParser
|
|
||||||
else if (key == Input.KEY_ESCAPE && thread != null)
|
// stop parsing OsuFiles by sending interrupt to OsuParser
|
||||||
thread.interrupt();
|
else if (thread != null)
|
||||||
|
thread.interrupt();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user