From 87f29ea276d70171bbf227c0800991349ccf4873 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 2 Aug 2015 01:17:04 +0200 Subject: Adapt to GlueGen's Bitfield Changes (commit 047e9adaf2a5f51f7acfa194a744c99b6bfadaea) --- src/newt/classes/com/jogamp/newt/event/InputEvent.java | 6 +++--- src/newt/classes/com/jogamp/newt/event/KeyEvent.java | 2 +- 2 files changed, 4 insertions(+), 4 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 ca9d4c2a3..3a73671f1 100644 --- a/src/newt/classes/com/jogamp/newt/event/InputEvent.java +++ b/src/newt/classes/com/jogamp/newt/event/InputEvent.java @@ -188,11 +188,11 @@ public abstract class InputEvent extends NEWTEvent *

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

- * @see Bitfield.Util#getBitCount(int) + * @see Bitfield.Util#bitCount(int) * @see #BUTTONALL_MASK */ public final int getButtonDownCount() { - return Bitfield.Util.getBitCount(modifiers & BUTTONALL_MASK); + return Bitfield.Util.bitCount(modifiers & BUTTONALL_MASK); } /** @@ -203,7 +203,7 @@ public abstract class InputEvent extends NEWTEvent *

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

- * @see Bitfield.Util#getBitCount(int) + * @see Bitfield.Util#bitCount(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 9e69d76fa..70e264685 100644 --- a/src/newt/classes/com/jogamp/newt/event/KeyEvent.java +++ b/src/newt/classes/com/jogamp/newt/event/KeyEvent.java @@ -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 = Bitfield.Util.getBitCount(pma_bits); + final int pma_count = Bitfield.Util.bitCount(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