< prev index next >

src/java.desktop/macosx/native/libawt_lwawt/awt/AWTEvent.m

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
*** 577,587 **** return nsFlags; } ! jint GetJavaMouseModifiers(NSInteger button, NSUInteger modifierFlags) { // Mousing needs the key modifiers jint modifiers = NsKeyModifiersToJavaModifiers(modifierFlags, YES); --- 577,587 ---- return nsFlags; } ! jint GetJavaMouseModifiers(NSUInteger modifierFlags) { // Mousing needs the key modifiers jint modifiers = NsKeyModifiersToJavaModifiers(modifierFlags, YES);
*** 630,671 **** { } /* * Class: sun_lwawt_macosx_NSEvent ! * Method: nsToJavaMouseModifiers * Signature: (II)I */ JNIEXPORT jint JNICALL ! Java_sun_lwawt_macosx_NSEvent_nsToJavaMouseModifiers ! (JNIEnv *env, jclass cls, jint buttonNumber, jint modifierFlags) ! { ! jint jmodifiers = 0; ! ! JNF_COCOA_ENTER(env); ! ! jmodifiers = GetJavaMouseModifiers(buttonNumber, modifierFlags); ! ! JNF_COCOA_EXIT(env); ! ! return jmodifiers; ! } ! ! /* ! * Class: sun_lwawt_macosx_NSEvent ! * Method: nsToJavaKeyModifiers ! * Signature: (I)I ! */ ! JNIEXPORT jint JNICALL ! Java_sun_lwawt_macosx_NSEvent_nsToJavaKeyModifiers (JNIEnv *env, jclass cls, jint modifierFlags) { jint jmodifiers = 0; JNF_COCOA_ENTER(env); ! jmodifiers = NsKeyModifiersToJavaModifiers(modifierFlags, YES); JNF_COCOA_EXIT(env); return jmodifiers; } --- 630,651 ---- { } /* * Class: sun_lwawt_macosx_NSEvent ! * Method: nsToJavaModifiers * Signature: (II)I */ JNIEXPORT jint JNICALL ! Java_sun_lwawt_macosx_NSEvent_nsToJavaModifiers (JNIEnv *env, jclass cls, jint modifierFlags) { jint jmodifiers = 0; JNF_COCOA_ENTER(env); ! jmodifiers = GetJavaMouseModifiers(modifierFlags); JNF_COCOA_EXIT(env); return jmodifiers; }
< prev index next >