mirror of
https://github.com/jneug/zeichenmaschine.git
synced 2026-04-14 06:33:34 +02:00
Userinput wird nach Stopp der ZM weiterverarbeitet
This commit is contained in:
@@ -583,6 +583,10 @@ public class Zeichenmaschine extends Constants {
|
||||
return state == Options.AppState.PAUSED;
|
||||
}
|
||||
|
||||
public final boolean isStopped() {
|
||||
return state == Options.AppState.STOPPED || state == Options.AppState.TERMINATED;
|
||||
}
|
||||
|
||||
/**
|
||||
* Stoppt die Zeichenmaschine.
|
||||
* <p>
|
||||
@@ -1181,7 +1185,7 @@ public class Zeichenmaschine extends Constants {
|
||||
private void enqueueEvent( InputEvent evt ) {
|
||||
eventQueue.add(evt);
|
||||
|
||||
if( isPaused() ) {
|
||||
if( isPaused() || isStopped()) {
|
||||
dispatchEvents();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user