diff options
author | Joshua Slack <[email protected]> | 2018-01-15 12:05:59 -0600 |
---|---|---|
committer | Joshua Slack <[email protected]> | 2018-01-15 12:05:59 -0600 |
commit | ec71ecdbbb1437dd57a0f47a1f70d36a25529038 (patch) | |
tree | 1b3eb134296e5341fcc75959fbe6c048edbe8b47 /ardor3d-swt | |
parent | 7f712e9e1516547a9472d424ff8f47b726066358 (diff) |
Added new method to Canvas interface providing a way to store and retrieve the mouse manager for a given canvas.
Diffstat (limited to 'ardor3d-swt')
-rw-r--r-- | ardor3d-swt/src/main/java/com/ardor3d/framework/swt/SwtCanvas.java | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/ardor3d-swt/src/main/java/com/ardor3d/framework/swt/SwtCanvas.java b/ardor3d-swt/src/main/java/com/ardor3d/framework/swt/SwtCanvas.java index 97aebf3..dfda434 100644 --- a/ardor3d-swt/src/main/java/com/ardor3d/framework/swt/SwtCanvas.java +++ b/ardor3d-swt/src/main/java/com/ardor3d/framework/swt/SwtCanvas.java @@ -21,6 +21,7 @@ import com.ardor3d.annotation.MainThread; import com.ardor3d.framework.Canvas; import com.ardor3d.framework.CanvasRenderer; import com.ardor3d.framework.DisplaySettings; +import com.ardor3d.input.MouseManager; /** * A canvas for embedding into SWT applications. @@ -55,10 +56,26 @@ public class SwtCanvas extends GLCanvas implements Canvas { return rVal; } + public CanvasRenderer getCanvasRenderer() { + return _canvasRenderer; + } + public void setCanvasRenderer(final CanvasRenderer renderer) { _canvasRenderer = renderer; } + protected MouseManager _manager; + + @Override + public MouseManager getMouseManager() { + return _manager; + } + + @Override + public void setMouseManager(final MouseManager manager) { + _manager = manager; + } + @MainThread private void privateInit() { // tell our parent to lay us out so we have the right starting size. @@ -97,8 +114,4 @@ public class SwtCanvas extends GLCanvas implements Canvas { latch.countDown(); } - - public CanvasRenderer getCanvasRenderer() { - return _canvasRenderer; - } } |