From 1a8b5c63c2f5328724a84ced2fa16a04ee6e8ac5 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 30 Jul 2015 03:07:07 +0200 Subject: Use GlueGen's Bitfield instead of IntBitfield --- src/newt/classes/com/jogamp/newt/event/InputEvent.java | 8 ++++---- src/newt/classes/com/jogamp/newt/event/KeyEvent.java | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/newt/classes/com/jogamp') 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 *

* See also {@link MouseEvent}'s section about Multiple-Pointer Events. *

- * @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 *

* See also {@link MouseEvent}'s section about Multiple-Pointer Events. *

- * @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; /** *
KeyEvent Delivery
@@ -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); } -- cgit v1.2.3