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;
|
return state == Options.AppState.PAUSED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public final boolean isStopped() {
|
||||||
|
return state == Options.AppState.STOPPED || state == Options.AppState.TERMINATED;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stoppt die Zeichenmaschine.
|
* Stoppt die Zeichenmaschine.
|
||||||
* <p>
|
* <p>
|
||||||
@@ -1181,7 +1185,7 @@ public class Zeichenmaschine extends Constants {
|
|||||||
private void enqueueEvent( InputEvent evt ) {
|
private void enqueueEvent( InputEvent evt ) {
|
||||||
eventQueue.add(evt);
|
eventQueue.add(evt);
|
||||||
|
|
||||||
if( isPaused() ) {
|
if( isPaused() || isStopped()) {
|
||||||
dispatchEvents();
|
dispatchEvents();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user