sl@0: // Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // Key code and scan code aliases for platform specific keys. sl@0: // The definitions are as per S60 with the addition of the sl@0: // full set of scan codes. sl@0: sl@0: /** sl@0: @file sl@0: @internalTechnology sl@0: @prototype sl@0: */ sl@0: sl@0: #include sl@0: sl@0: /** sl@0: TStdScanCode aliases sl@0: */ sl@0: #define EStdKeyPhoneSend EStdKeyYes sl@0: #define EStdKeyPhoneEnd EStdKeyNo sl@0: #define EStdKeyCBA1 EStdKeyDevice0 sl@0: #define EStdKeyCBA2 EStdKeyDevice1 sl@0: #define EStdKeyPowerOff EStdKeyDevice2 sl@0: #define EStdKeyOK EStdKeyDevice3 sl@0: #define EStdKeyGripOpen EStdKeyDevice4 sl@0: #define EStdKeyGripClose EStdKeyDevice5 sl@0: #define EStdKeySide EStdKeyDevice6 // Voice key sl@0: #define EStdKeyCamera EStdKeyDevice7 sl@0: #define EStdKeyTwistOpen EStdKeyDevice8 sl@0: #define EStdKeyTwistClose EStdKeyDevice9 sl@0: #define EStdKeyFlipOpen EStdKeyDeviceA sl@0: #define EStdKeyFlipClose EStdKeyDeviceB sl@0: #define EStdKeyLock EStdKeyDeviceF sl@0: #define EStdKeyLeftUpArrow EStdKeyDevice10 // Diagonal arrow event sl@0: #define EStdKeyRightUpArrow EStdKeyDevice11 // Diagonal arrow event sl@0: #define EStdKeyRightDownArrow EStdKeyDevice12 // Diagonal arrow event sl@0: #define EStdKeyLeftDownArrow EStdKeyDevice13 // Diagonal arrow event sl@0: #define EStdKeyVolumeUp EStdKeyIncVolume sl@0: #define EStdKeyVolumeDown EStdKeyDecVolume sl@0: #define EStdKeyApplication EStdKeyApplication0 sl@0: #define EStdKeyPoC EStdKeyApplication1 sl@0: #define EStdKeyPlay EStdKeyApplication2 sl@0: #define EStdKeyStop EStdKeyApplication3 sl@0: #define EStdKeyForward EStdKeyApplication4 sl@0: #define EStdKeyRewind EStdKeyApplication5 sl@0: #define EStdKeyOperator EStdKeyApplication6 sl@0: #define EStdKeyQwertyOn EStdKeyApplication7 sl@0: #define EStdKeyQwertyOff EStdKeyApplication8 sl@0: #define EStdKeyNext EStdKeyApplication9 sl@0: #define EStdKeyPrevious EStdKeyApplicationA sl@0: #define EStdKeyHoldSwitch EStdKeyApplicationB sl@0: #define EStdKeyZoomIn EStdKeyApplicationC sl@0: #define EStdKeyZoomOut EStdKeyApplicationD sl@0: #define EStdKey4x10QwertyOn EStdKeyApplicationE sl@0: #define EStdKey3x11QwertyOn EStdKeyApplication10 sl@0: #define EStdKeyHalfQwertyOn EStdKeyApplication11 sl@0: #define EStdKeyCustomKeyboardOn EStdKeyApplication12 sl@0: sl@0: /** sl@0: TKeyCode aliases sl@0: */ sl@0: #define EKeyPhoneSend EKeyYes sl@0: #define EKeyPhoneEnd EKeyNo sl@0: #define EKeyCBA1 EKeyDevice0 sl@0: #define EKeyCBA2 EKeyDevice1 sl@0: #define EKeyPowerOff EKeyDevice2 sl@0: #define EKeyOK EKeyDevice3 sl@0: #define EKeyGripOpen EKeyDevice4 sl@0: #define EKeyGripClose EKeyDevice5 sl@0: #define EKeySide EKeyDevice6 // Voice key sl@0: #define EKeyCamera EKeyDevice7 sl@0: #define EKeyTwistOpen EKeyDevice8 sl@0: #define EKeyTwistClose EKeyDevice9 sl@0: #define EKeyFlipOpen EKeyDeviceA sl@0: #define EKeyFlipClose EKeyDeviceB sl@0: #define EKeyLock EKeyDeviceF sl@0: #define EKeyLeftUpArrow EKeyDevice10 // Diagonal arrow event sl@0: #define EKeyRightUpArrow EKeyDevice11 // Diagonal arrow event sl@0: #define EKeyRightDownArrow EKeyDevice12 // Diagonal arrow event sl@0: #define EKeyLeftDownArrow EKeyDevice13 // Diagonal arrow event sl@0: #define EKeyVolumeUp EKeyIncVolume sl@0: #define EKeyVolumeDown EKeyDecVolume sl@0: #define EKeyApplication EKeyApplication0 sl@0: #define EKeyPoC EKeyApplication1 sl@0: #define EKeyPlay EKeyApplication2 sl@0: #define EKeyStop EKeyApplication3 sl@0: #define EKeyForward EKeyApplication4 sl@0: #define EKeyRewind EKeyApplication5 sl@0: #define EKeyOperator EKeyApplication6 sl@0: #define EKeyQwertyOn EKeyApplication7 sl@0: #define EKeyQwertyOff EKeyApplication8 sl@0: #define EKeyNext EKeyApplication9 sl@0: #define EKeyPrevious EKeyApplicationA sl@0: #define EKeyHoldSwitch EKeyApplicationB sl@0: #define EKeyZoomIn EKeyApplicationC sl@0: #define EKeyZoomOut EKeyApplicationD sl@0: #define EKey4x10QwertyOn EKeyApplicationE sl@0: #define EKey3x11QwertyOn EKeyApplication10 sl@0: #define EKeyHalfQwertyOn EKeyApplication11 sl@0: #define EKeyCustomKeyboardOn EKeyApplication12