From ec71ecdbbb1437dd57a0f47a1f70d36a25529038 Mon Sep 17 00:00:00 2001 From: Joshua Slack Date: Mon, 15 Jan 2018 12:05:59 -0600 Subject: Added new method to Canvas interface providing a way to store and retrieve the mouse manager for a given canvas. --- .../src/main/java/com/ardor3d/framework/Canvas.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'ardor3d-core') diff --git a/ardor3d-core/src/main/java/com/ardor3d/framework/Canvas.java b/ardor3d-core/src/main/java/com/ardor3d/framework/Canvas.java index 444a3ce..2658c86 100644 --- a/ardor3d-core/src/main/java/com/ardor3d/framework/Canvas.java +++ b/ardor3d-core/src/main/java/com/ardor3d/framework/Canvas.java @@ -13,6 +13,7 @@ package com.ardor3d.framework; import java.util.concurrent.CountDownLatch; import com.ardor3d.annotation.MainThread; +import com.ardor3d.input.MouseManager; /** * This interface defines the View, and should maybe be called the ViewUpdater. It owns the rendering phase, and @@ -29,7 +30,7 @@ public interface Canvas { /** * Ask the canvas to render itself. Note that this may occur in another thread and therefore a latch is given so the * caller may know when the draw has completed. - * + * * @param latch * a counter that should be decremented once drawing has completed. */ @@ -40,4 +41,17 @@ public interface Canvas { * @return the CanvasRenderer associated with this Canvas. */ CanvasRenderer getCanvasRenderer(); + + /** + * @return the MouseManager associated with this Canvas, if any + */ + MouseManager getMouseManager(); + + /** + * Sets a MouseManager to be associated with this Canvas. + * + * @param manager + * the manager to associate + */ + void setMouseManager(MouseManager manager); } -- cgit v1.2.3