aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-09-16 15:40:48 +0200
committerSven Gothel <[email protected]>2023-09-16 15:40:48 +0200
commitaac1265340ae2ee1cad6bbf89369ba0288a6a290 (patch)
treea2f7e0e80b6de5d491a63a97d2e9ef72b0c51568 /src/newt
parente5de90b67efe8e8ca518159b3a73295d751764c1 (diff)
Debug.debugExplicit(): Define and use explicit symbol debug flag; Use it for certain debug output to keep most silence for debugAll()
Diffstat (limited to 'src/newt')
-rw-r--r--src/newt/classes/com/jogamp/newt/Window.java4
-rw-r--r--src/newt/classes/jogamp/newt/Debug.java6
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);
}
}