diff options
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/Ctrl.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/Ctrl.java b/core/src/ch/asynk/rustanddust/game/Ctrl.java index 6079594..ff33e7f 100644 --- a/core/src/ch/asynk/rustanddust/game/Ctrl.java +++ b/core/src/ch/asynk/rustanddust/game/Ctrl.java @@ -196,8 +196,14 @@ public abstract class Ctrl implements Disposable public void postEvent(EventType type) { + postEvent(type, null); + } + + public void postEvent(EventType type, Object data) + { Event evt = getEvent(); evt.type = type; + evt.data = data; events.enqueue(evt); } |