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/jogamp/newt/WindowImpl.java | 4 ++-- .../classes/jogamp/newt/driver/bcm/vc/iv/WindowDriver.java | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src/newt/classes/jogamp') diff --git a/src/newt/classes/jogamp/newt/WindowImpl.java b/src/newt/classes/jogamp/newt/WindowImpl.java index 091e6243a..ae3d2a997 100644 --- a/src/newt/classes/jogamp/newt/WindowImpl.java +++ b/src/newt/classes/jogamp/newt/WindowImpl.java @@ -65,7 +65,7 @@ import jogamp.nativewindow.SurfaceUpdatedHelper; import com.jogamp.common.ExceptionUtils; import com.jogamp.common.util.ArrayHashSet; -import com.jogamp.common.util.IntBitfield; +import com.jogamp.common.util.Bitfield; import com.jogamp.common.util.PropertyAccess; import com.jogamp.common.util.ReflectionUtil; import com.jogamp.common.util.locks.LockFactory; @@ -3448,7 +3448,7 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer // KeyListener/Event Support // private static final int keyTrackingRange = 255; - private final IntBitfield keyPressedState = new IntBitfield( keyTrackingRange + 1 ); + private final Bitfield keyPressedState = Bitfield.Factory.create( keyTrackingRange + 1 ); protected final boolean isKeyCodeTracked(final short keyCode) { return ( 0xFFFF & keyCode ) <= keyTrackingRange; diff --git a/src/newt/classes/jogamp/newt/driver/bcm/vc/iv/WindowDriver.java b/src/newt/classes/jogamp/newt/driver/bcm/vc/iv/WindowDriver.java index c971acfad..1f7da129d 100644 --- a/src/newt/classes/jogamp/newt/driver/bcm/vc/iv/WindowDriver.java +++ b/src/newt/classes/jogamp/newt/driver/bcm/vc/iv/WindowDriver.java @@ -40,7 +40,7 @@ import com.jogamp.nativewindow.util.Insets; import com.jogamp.nativewindow.util.Point; import com.jogamp.nativewindow.util.Rectangle; import com.jogamp.nativewindow.util.RectangleImmutable; -import com.jogamp.common.util.IntBitfield; +import com.jogamp.common.util.Bitfield; import com.jogamp.nativewindow.egl.EGLGraphicsDevice; import com.jogamp.newt.event.MouseEvent; @@ -62,7 +62,7 @@ public class WindowDriver extends WindowImpl { } public WindowDriver() { - + /* Try use X11 as input for bcm.vc.iv * if X11 fail to initialize then * track using the /dev/event files directly @@ -73,7 +73,7 @@ public class WindowDriver extends WindowImpl { mouseTracker = x11UnderlayTracker; keyTracker = x11UnderlayTracker; - } catch(ExceptionInInitializerError e) { + } catch(final ExceptionInInitializerError e) { linuxMouseTracker = LinuxMouseTracker.getSingleton(); linuxEventDeviceTracker = LinuxEventDeviceTracker.getSingleton(); @@ -217,7 +217,7 @@ public class WindowDriver extends WindowImpl { addWindowListener(keyTracker); addWindowListener(mouseTracker); - + focusChanged(false, true); } @@ -253,7 +253,7 @@ public class WindowDriver extends WindowImpl { final RectangleImmutable rect = clampRect((ScreenDriver) getScreen(), new Rectangle(x, y, width, height), false); // reconfigure0 will issue position/size changed events if required reconfigure0(nativeWindowHandle, rect.getX(), rect.getY(), rect.getWidth(), rect.getHeight(), flags); - + return true; } @@ -296,7 +296,7 @@ public class WindowDriver extends WindowImpl { private LinuxMouseTracker linuxMouseTracker; private LinuxEventDeviceTracker linuxEventDeviceTracker; private X11UnderlayTracker x11UnderlayTracker; - + private MouseTracker mouseTracker; private KeyTracker keyTracker; @@ -312,6 +312,6 @@ public class WindowDriver extends WindowImpl { private static int nextLayer = 0; private static int layerCount = 0; private static final int MAX_LAYERS = 32; - private static final IntBitfield usedLayers = new IntBitfield(MAX_LAYERS); + private static final Bitfield usedLayers = Bitfield.Factory.create(MAX_LAYERS); private static final Object layerSync = new Object(); } -- cgit v1.2.3