summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-08-01 15:17:58 +0200
committerSven Gothel <[email protected]>2011-08-01 15:17:58 +0200
commitcdc94b8a404ee9fb9c83482038be593054cf45f5 (patch)
treec213ed1ac9eaefe1ed630ea5de90032b14f8fe79 /src
parentcb2c6e42963a018bdb73b55d4964c8abca7569d1 (diff)
AWTNewtEvent Mapping: Unmapped value -1 -> 0xffffffff
Diffstat (limited to 'src')
-rw-r--r--src/newt/classes/com/jogamp/newt/event/awt/AWTNewtEventFactory.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/newt/classes/com/jogamp/newt/event/awt/AWTNewtEventFactory.java b/src/newt/classes/com/jogamp/newt/event/awt/AWTNewtEventFactory.java
index 20c0d15d1..dcd33abc9 100644
--- a/src/newt/classes/com/jogamp/newt/event/awt/AWTNewtEventFactory.java
+++ b/src/newt/classes/com/jogamp/newt/event/awt/AWTNewtEventFactory.java
@@ -36,7 +36,7 @@ class AWTNewtEventFactory {
static {
IntIntHashMap map = new IntIntHashMap();
- map.setKeyNotFoundValue(-1);
+ map.setKeyNotFoundValue(0xFFFFFFFF);
// n/a map.put(java.awt.event.WindowEvent.WINDOW_OPENED, com.jogamp.newt.event.WindowEvent.EVENT_WINDOW_OPENED);
map.put(java.awt.event.WindowEvent.WINDOW_CLOSING, com.jogamp.newt.event.WindowEvent.EVENT_WINDOW_DESTROY_NOTIFY);
map.put(java.awt.event.WindowEvent.WINDOW_CLOSED, com.jogamp.newt.event.WindowEvent.EVENT_WINDOW_DESTROYED);
@@ -92,7 +92,7 @@ class AWTNewtEventFactory {
static final com.jogamp.newt.event.WindowEvent createWindowEvent(java.awt.event.WindowEvent event, com.jogamp.newt.Window newtSource) {
int type = eventTypeAWT2NEWT.get(event.getID());
- if(-1 < type) {
+ if(0xFFFFFFFF != type) {
return new com.jogamp.newt.event.WindowEvent(type, ((null==newtSource)?(Object)event.getComponent():(Object)newtSource), System.currentTimeMillis());
}
return null; // no mapping ..
@@ -100,7 +100,7 @@ class AWTNewtEventFactory {
static final com.jogamp.newt.event.WindowEvent createWindowEvent(java.awt.event.ComponentEvent event, com.jogamp.newt.Window newtSource) {
int type = eventTypeAWT2NEWT.get(event.getID());
- if(-1 < type) {
+ if(0xFFFFFFFF != type) {
return new com.jogamp.newt.event.WindowEvent(type, (null==newtSource)?(Object)event.getComponent():(Object)newtSource, System.currentTimeMillis());
}
return null; // no mapping ..
@@ -108,7 +108,7 @@ class AWTNewtEventFactory {
static final com.jogamp.newt.event.WindowEvent createWindowEvent(java.awt.event.FocusEvent event, com.jogamp.newt.Window newtSource) {
int type = eventTypeAWT2NEWT.get(event.getID());
- if(-1 < type) {
+ if(0xFFFFFFFF != type) {
return new com.jogamp.newt.event.WindowEvent(type, (null==newtSource)?(Object)event.getComponent():(Object)newtSource, System.currentTimeMillis());
}
return null; // no mapping ..
@@ -116,7 +116,7 @@ class AWTNewtEventFactory {
static final com.jogamp.newt.event.MouseEvent createMouseEvent(java.awt.event.MouseEvent event, com.jogamp.newt.Window newtSource) {
int type = eventTypeAWT2NEWT.get(event.getID());
- if(-1 < type) {
+ if(0xFFFFFFFF != type) {
int rotation = 0;
if (event instanceof java.awt.event.MouseWheelEvent) {
rotation = ((java.awt.event.MouseWheelEvent)event).getWheelRotation();
@@ -133,7 +133,7 @@ class AWTNewtEventFactory {
static final com.jogamp.newt.event.KeyEvent createKeyEvent(java.awt.event.KeyEvent event, com.jogamp.newt.Window newtSource) {
int type = eventTypeAWT2NEWT.get(event.getID());
- if(-1 < type) {
+ if(0xFFFFFFFF != type) {
return new com.jogamp.newt.event.KeyEvent(
type, (null==newtSource)?(Object)event.getComponent():(Object)newtSource, event.getWhen(),
awtModifiers2Newt(event.getModifiers(), false),