aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/classes/com/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2015-07-30 03:07:07 +0200
committerSven Gothel <[email protected]>2015-07-30 03:07:07 +0200
commit1a8b5c63c2f5328724a84ced2fa16a04ee6e8ac5 (patch)
tree05aaca0c36a1ce4ff241c3382629bcc94f621064 /src/newt/classes/com/jogamp
parent3f13a60ca428ed879ad2ac551f7bd808b9ba44a9 (diff)
Use GlueGen's Bitfield instead of IntBitfield
Diffstat (limited to 'src/newt/classes/com/jogamp')
-rw-r--r--src/newt/classes/com/jogamp/newt/event/InputEvent.java8
-rw-r--r--src/newt/classes/com/jogamp/newt/event/KeyEvent.java4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/newt/classes/com/jogamp/newt/event/InputEvent.java b/src/newt/classes/com/jogamp/newt/event/InputEvent.java
index fbda79d46..ca9d4c2a3 100644
--- a/src/newt/classes/com/jogamp/newt/event/InputEvent.java
+++ b/src/newt/classes/com/jogamp/newt/event/InputEvent.java
@@ -34,7 +34,7 @@
package com.jogamp.newt.event;
-import com.jogamp.common.util.IntBitfield;
+import com.jogamp.common.util.Bitfield;
import com.jogamp.newt.Window;
@SuppressWarnings("serial")
@@ -188,11 +188,11 @@ public abstract class InputEvent extends NEWTEvent
* <p>
* See also {@link MouseEvent}'s section about <i>Multiple-Pointer Events</i>.
* </p>
- * @see IntBitfield#getBitCount(int)
+ * @see Bitfield.Util#getBitCount(int)
* @see #BUTTONALL_MASK
*/
public final int getButtonDownCount() {
- return IntBitfield.getBitCount(modifiers & BUTTONALL_MASK);
+ return Bitfield.Util.getBitCount(modifiers & BUTTONALL_MASK);
}
/**
@@ -203,7 +203,7 @@ public abstract class InputEvent extends NEWTEvent
* <p>
* See also {@link MouseEvent}'s section about <i>Multiple-Pointer Events</i>.
* </p>
- * @see IntBitfield#getBitCount(int)
+ * @see Bitfield.Util#getBitCount(int)
* @see #BUTTONALL_MASK
*/
public final boolean isAnyButtonDown() {
diff --git a/src/newt/classes/com/jogamp/newt/event/KeyEvent.java b/src/newt/classes/com/jogamp/newt/event/KeyEvent.java
index f29e9eb8c..9e69d76fa 100644
--- a/src/newt/classes/com/jogamp/newt/event/KeyEvent.java
+++ b/src/newt/classes/com/jogamp/newt/event/KeyEvent.java
@@ -34,7 +34,7 @@
package com.jogamp.newt.event;
-import com.jogamp.common.util.IntBitfield;
+import com.jogamp.common.util.Bitfield;
/**
* <a name="eventDelivery"><h5>KeyEvent Delivery</h5></a>
@@ -141,7 +141,7 @@ public class KeyEvent extends InputEvent
// Validate flags
//
final int pma_bits = flags & ( F_PRINTABLE_MASK | F_MODIFIER_MASK | F_ACTION_MASK ) ;
- final int pma_count = IntBitfield.getBitCount(pma_bits);
+ final int pma_count = Bitfield.Util.getBitCount(pma_bits);
if ( 1 != pma_count ) {
throw new InternalError("Key must be either of type printable, modifier or action - but it is of "+pma_count+" types: "+this);
}