< prev index next >

src/java.desktop/macosx/classes/sun/lwawt/macosx/NSEvent.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 229,248 **** break; } return jeventType; } ! /* ! * Converts NSEvent mouse modifiers to AWT mouse modifiers. ! */ ! static native int nsToJavaMouseModifiers(int buttonNumber, ! int modifierFlags); ! ! /* ! * Converts NSEvent key modifiers to AWT key modifiers. */ ! static native int nsToJavaKeyModifiers(int modifierFlags); /* * Converts NSEvent key info to AWT key info. */ static native boolean nsToJavaKeyInfo(int[] in, int[] out); --- 229,246 ---- break; } return jeventType; } ! /** ! * Converts NSEvent key modifiers to AWT key modifiers. Note that this ! * method adds the current mouse state as a mouse modifiers. ! * ! * @param modifierFlags the NSEvent key modifiers ! * @return the java key and mouse modifiers */ ! static native int nsToJavaModifiers(int modifierFlags); /* * Converts NSEvent key info to AWT key info. */ static native boolean nsToJavaKeyInfo(int[] in, int[] out);
< prev index next >