diff options
Diffstat (limited to 'src/newt/classes')
-rw-r--r-- | src/newt/classes/com/jogamp/newt/Window.java | 4 | ||||
-rw-r--r-- | src/newt/classes/jogamp/newt/Debug.java | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/newt/classes/com/jogamp/newt/Window.java b/src/newt/classes/com/jogamp/newt/Window.java index 47c03557e..e43961e98 100644 --- a/src/newt/classes/com/jogamp/newt/Window.java +++ b/src/newt/classes/com/jogamp/newt/Window.java @@ -113,8 +113,8 @@ import com.jogamp.nativewindow.util.SurfaceSize; * </p> */ public interface Window extends NativeWindow, WindowClosingProtocol, ScalableSurface { - public static final boolean DEBUG_MOUSE_EVENT = Debug.debug("Window.MouseEvent"); - public static final boolean DEBUG_KEY_EVENT = Debug.debug("Window.KeyEvent"); + public static final boolean DEBUG_MOUSE_EVENT = Debug.debugExplicit("Window.MouseEvent"); + public static final boolean DEBUG_KEY_EVENT = Debug.debugExplicit("Window.KeyEvent"); public static final boolean DEBUG_IMPLEMENTATION = Debug.debug("Window"); /** A 1s timeout while waiting for a native action response, ie {@link #setVisible(boolean)}. */ diff --git a/src/newt/classes/jogamp/newt/Debug.java b/src/newt/classes/jogamp/newt/Debug.java index 60b259214..fc16ac8a8 100644 --- a/src/newt/classes/jogamp/newt/Debug.java +++ b/src/newt/classes/jogamp/newt/Debug.java @@ -69,7 +69,11 @@ public class Debug extends PropertyAccess { return debugAll; } + public static final boolean debugExplicit(final String subcomponent) { + return isPropertyDefined("newt.debug." + subcomponent, true); + } + public static final boolean debug(final String subcomponent) { - return debugAll() || isPropertyDefined("newt.debug." + subcomponent, true); + return debugAll() || debugExplicit(subcomponent); } } |