diff options
author | Sven Gothel <[email protected]> | 2011-11-18 07:23:39 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-11-18 07:23:39 +0100 |
commit | 3b38957f36d4f89b85730755a41c00892ac70591 (patch) | |
tree | 1ef3acbe076e6d19581833ab1819c09e45292ca6 /src/newt/classes/com/jogamp | |
parent | d644e9321dceeecdd94a1797e25e6e356d957c23 (diff) |
NEWT InputEvent consumed: Expose special attachement Object 'consumedTag', which ends event propagation if attach to an InputEvent.
Diffstat (limited to 'src/newt/classes/com/jogamp')
-rw-r--r-- | src/newt/classes/com/jogamp/newt/event/InputEvent.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/newt/classes/com/jogamp/newt/event/InputEvent.java b/src/newt/classes/com/jogamp/newt/event/InputEvent.java index 51ceccf31..d8a9235c1 100644 --- a/src/newt/classes/com/jogamp/newt/event/InputEvent.java +++ b/src/newt/classes/com/jogamp/newt/event/InputEvent.java @@ -48,6 +48,11 @@ public abstract class InputEvent extends NEWTEvent public static final int CONFINED_MASK = 1 << 16; public static final int INVISIBLE_MASK = 1 << 17; + /** Object when attached via {@link #setAttachment(Object)} marks the event consumed, + * ie. stops propagating the event any further to the event listener. + */ + public static final Object consumedTag = new Object(); + protected InputEvent(int eventType, Object source, long when, int modifiers) { super(eventType, source, when); this.modifiers=modifiers; |