Path: blob/master/src/java.desktop/macosx/native/libawt_lwawt/awt/CRobotKeyCode.h
41152 views
/*1* Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425#import <Foundation/Foundation.h>2627#ifndef KeyCodeConverter_CRobotKeyCode_h28#define KeyCodeConverter_CRobotKeyCode_h2930const static int OSX_kVK_ANSI_A = 0x00;31const static int OSX_kVK_ANSI_S = 0x01;32const static int OSX_kVK_ANSI_D = 0x02;33const static int OSX_kVK_ANSI_F = 0x03;34const static int OSX_kVK_ANSI_H = 0x04;35const static int OSX_kVK_ANSI_G = 0x05;36const static int OSX_kVK_ANSI_Z = 0x06;37const static int OSX_kVK_ANSI_X = 0x07;38const static int OSX_kVK_ANSI_C = 0x08;39const static int OSX_kVK_ANSI_V = 0x09;40const static int OSX_kVK_ISO_Section = 0x0A;41const static int OSX_kVK_ANSI_B = 0x0B;42const static int OSX_kVK_ANSI_Q = 0x0C;43const static int OSX_kVK_ANSI_W = 0x0D;44const static int OSX_kVK_ANSI_E = 0x0E;45const static int OSX_kVK_ANSI_R = 0x0F;46const static int OSX_kVK_ANSI_Y = 0x10;47const static int OSX_kVK_ANSI_T = 0x11;48const static int OSX_kVK_ANSI_1 = 0x12;49const static int OSX_kVK_ANSI_2 = 0x13;50const static int OSX_kVK_ANSI_3 = 0x14;51const static int OSX_kVK_ANSI_4 = 0x15;52const static int OSX_kVK_ANSI_6 = 0x16;53const static int OSX_kVK_ANSI_5 = 0x17;54const static int OSX_kVK_ANSI_Equal = 0x18;55const static int OSX_kVK_ANSI_9 = 0x19;56const static int OSX_kVK_ANSI_7 = 0x1A;57const static int OSX_kVK_ANSI_Minus = 0x1B;58const static int OSX_kVK_ANSI_8 = 0x1C;59const static int OSX_kVK_ANSI_0 = 0x1D;60const static int OSX_kVK_ANSI_RightBracket = 0x1E;61const static int OSX_kVK_ANSI_O = 0x1F;62const static int OSX_kVK_ANSI_U = 0x20;63const static int OSX_kVK_ANSI_LeftBracket = 0x21;64const static int OSX_kVK_ANSI_I = 0x22;65const static int OSX_kVK_ANSI_P = 0x23;66const static int OSX_kVK_ANSI_L = 0x25;67const static int OSX_kVK_ANSI_J = 0x26;68const static int OSX_kVK_ANSI_Quote = 0x27;69const static int OSX_kVK_ANSI_K = 0x28;70const static int OSX_kVK_ANSI_Semicolon = 0x29;71const static int OSX_kVK_ANSI_Backslash = 0x2A;72const static int OSX_kVK_ANSI_Comma = 0x2B;73const static int OSX_kVK_ANSI_Slash = 0x2C;74const static int OSX_kVK_ANSI_N = 0x2D;75const static int OSX_kVK_ANSI_M = 0x2E;76const static int OSX_kVK_ANSI_Period = 0x2F;77const static int OSX_kVK_ANSI_Grave = 0x32;78const static int OSX_kVK_ANSI_KeypadDecimal = 0x41;79const static int OSX_kVK_ANSI_KeypadMultiply = 0x43;80const static int OSX_kVK_ANSI_KeypadPlus = 0x45;81const static int OSX_kVK_ANSI_KeypadClear = 0x47;82const static int OSX_kVK_ANSI_KeypadDivide = 0x4B;83const static int OSX_kVK_ANSI_KeypadEnter = 0x4C;84const static int OSX_kVK_ANSI_KeypadMinus = 0x4E;85const static int OSX_kVK_ANSI_KeypadEquals = 0x51;86const static int OSX_kVK_ANSI_Keypad0 = 0x52;87const static int OSX_kVK_ANSI_Keypad1 = 0x53;88const static int OSX_kVK_ANSI_Keypad2 = 0x54;89const static int OSX_kVK_ANSI_Keypad3 = 0x55;90const static int OSX_kVK_ANSI_Keypad4 = 0x56;91const static int OSX_kVK_ANSI_Keypad5 = 0x57;92const static int OSX_kVK_ANSI_Keypad6 = 0x58;93const static int OSX_kVK_ANSI_Keypad7 = 0x59;94const static int OSX_kVK_ANSI_Keypad8 = 0x5B;95const static int OSX_kVK_ANSI_Keypad9 = 0x5C;96const static int OSX_kVK_Return = 0x24;97const static int OSX_kVK_Tab = 0x30;98const static int OSX_kVK_Space = 0x31;99const static int OSX_Delete = 0x33;100const static int OSX_Escape = 0x35;101const static int OSX_Command = 0x37;102const static int OSX_Shift = 0x38;103const static int OSX_CapsLock = 0x39;104const static int OSX_Option = 0x3A;105const static int OSX_Control = 0x3B;106const static int OSX_RightShift = 0x3C;107const static int OSX_RightOption = 0x3D;108const static int OSX_RightControl = 0x3E;109const static int OSX_Function = 0x3F;110const static int OSX_F17 = 0x40;111const static int OSX_VolumeUp = 0x48;112const static int OSX_VolumeDown = 0x49;113const static int OSX_Mute = 0x4A;114const static int OSX_F18 = 0x4F;115const static int OSX_F19 = 0x50;116const static int OSX_F20 = 0x5A;117const static int OSX_F5 = 0x60;118const static int OSX_F6 = 0x61;119const static int OSX_F7 = 0x62;120const static int OSX_F3 = 0x63;121const static int OSX_F8 = 0x64;122const static int OSX_F9 = 0x65;123const static int OSX_F11 = 0x67;124const static int OSX_F13 = 0x69;125const static int OSX_F16 = 0x6A;126const static int OSX_F14 = 0x6B;127const static int OSX_F10 = 0x6D;128const static int OSX_F12 = 0x6F;129const static int OSX_F15 = 0x71;130const static int OSX_Help = 0x72;131const static int OSX_Home = 0x73;132const static int OSX_PageUp = 0x74;133const static int OSX_ForwardDelete = 0x75;134const static int OSX_F4 = 0x76;135const static int OSX_End = 0x77;136const static int OSX_F2 = 0x78;137const static int OSX_PageDown = 0x79;138const static int OSX_F1 = 0x7A;139const static int OSX_LeftArrow = 0x7B;140const static int OSX_RightArrow = 0x7C;141const static int OSX_DownArrow = 0x7D;142const static int OSX_UpArrow = 0x7E;143const static int OSX_Undefined = 0x7F;144145@interface CRobotKeyCodeMapping : NSObject {146147}148149@property (readwrite, retain) NSDictionary *javaToMacKeyMap;150151+ (CRobotKeyCodeMapping *)sharedInstance ;152- (int)getOSXKeyCodeForJavaKey:(int) javaKey;153154@end155156#endif157158159