1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/graphics/windowing/windowserverplugins/keyeventrouting/src/keyaliases.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,110 @@
1.4 +// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// Key code and scan code aliases for platform specific keys.
1.18 +// The definitions are as per S60 <mw/eikon.hrh> with the addition of the
1.19 +// full set of scan codes.
1.20 +
1.21 +/**
1.22 +@file
1.23 +@internalTechnology
1.24 +@prototype
1.25 +*/
1.26 +
1.27 +#include <e32keys.h>
1.28 +
1.29 +/**
1.30 +TStdScanCode aliases
1.31 +*/
1.32 +#define EStdKeyPhoneSend EStdKeyYes
1.33 +#define EStdKeyPhoneEnd EStdKeyNo
1.34 +#define EStdKeyCBA1 EStdKeyDevice0
1.35 +#define EStdKeyCBA2 EStdKeyDevice1
1.36 +#define EStdKeyPowerOff EStdKeyDevice2
1.37 +#define EStdKeyOK EStdKeyDevice3
1.38 +#define EStdKeyGripOpen EStdKeyDevice4
1.39 +#define EStdKeyGripClose EStdKeyDevice5
1.40 +#define EStdKeySide EStdKeyDevice6 // Voice key
1.41 +#define EStdKeyCamera EStdKeyDevice7
1.42 +#define EStdKeyTwistOpen EStdKeyDevice8
1.43 +#define EStdKeyTwistClose EStdKeyDevice9
1.44 +#define EStdKeyFlipOpen EStdKeyDeviceA
1.45 +#define EStdKeyFlipClose EStdKeyDeviceB
1.46 +#define EStdKeyLock EStdKeyDeviceF
1.47 +#define EStdKeyLeftUpArrow EStdKeyDevice10 // Diagonal arrow event
1.48 +#define EStdKeyRightUpArrow EStdKeyDevice11 // Diagonal arrow event
1.49 +#define EStdKeyRightDownArrow EStdKeyDevice12 // Diagonal arrow event
1.50 +#define EStdKeyLeftDownArrow EStdKeyDevice13 // Diagonal arrow event
1.51 +#define EStdKeyVolumeUp EStdKeyIncVolume
1.52 +#define EStdKeyVolumeDown EStdKeyDecVolume
1.53 +#define EStdKeyApplication EStdKeyApplication0
1.54 +#define EStdKeyPoC EStdKeyApplication1
1.55 +#define EStdKeyPlay EStdKeyApplication2
1.56 +#define EStdKeyStop EStdKeyApplication3
1.57 +#define EStdKeyForward EStdKeyApplication4
1.58 +#define EStdKeyRewind EStdKeyApplication5
1.59 +#define EStdKeyOperator EStdKeyApplication6
1.60 +#define EStdKeyQwertyOn EStdKeyApplication7
1.61 +#define EStdKeyQwertyOff EStdKeyApplication8
1.62 +#define EStdKeyNext EStdKeyApplication9
1.63 +#define EStdKeyPrevious EStdKeyApplicationA
1.64 +#define EStdKeyHoldSwitch EStdKeyApplicationB
1.65 +#define EStdKeyZoomIn EStdKeyApplicationC
1.66 +#define EStdKeyZoomOut EStdKeyApplicationD
1.67 +#define EStdKey4x10QwertyOn EStdKeyApplicationE
1.68 +#define EStdKey3x11QwertyOn EStdKeyApplication10
1.69 +#define EStdKeyHalfQwertyOn EStdKeyApplication11
1.70 +#define EStdKeyCustomKeyboardOn EStdKeyApplication12
1.71 +
1.72 +/**
1.73 +TKeyCode aliases
1.74 +*/
1.75 +#define EKeyPhoneSend EKeyYes
1.76 +#define EKeyPhoneEnd EKeyNo
1.77 +#define EKeyCBA1 EKeyDevice0
1.78 +#define EKeyCBA2 EKeyDevice1
1.79 +#define EKeyPowerOff EKeyDevice2
1.80 +#define EKeyOK EKeyDevice3
1.81 +#define EKeyGripOpen EKeyDevice4
1.82 +#define EKeyGripClose EKeyDevice5
1.83 +#define EKeySide EKeyDevice6 // Voice key
1.84 +#define EKeyCamera EKeyDevice7
1.85 +#define EKeyTwistOpen EKeyDevice8
1.86 +#define EKeyTwistClose EKeyDevice9
1.87 +#define EKeyFlipOpen EKeyDeviceA
1.88 +#define EKeyFlipClose EKeyDeviceB
1.89 +#define EKeyLock EKeyDeviceF
1.90 +#define EKeyLeftUpArrow EKeyDevice10 // Diagonal arrow event
1.91 +#define EKeyRightUpArrow EKeyDevice11 // Diagonal arrow event
1.92 +#define EKeyRightDownArrow EKeyDevice12 // Diagonal arrow event
1.93 +#define EKeyLeftDownArrow EKeyDevice13 // Diagonal arrow event
1.94 +#define EKeyVolumeUp EKeyIncVolume
1.95 +#define EKeyVolumeDown EKeyDecVolume
1.96 +#define EKeyApplication EKeyApplication0
1.97 +#define EKeyPoC EKeyApplication1
1.98 +#define EKeyPlay EKeyApplication2
1.99 +#define EKeyStop EKeyApplication3
1.100 +#define EKeyForward EKeyApplication4
1.101 +#define EKeyRewind EKeyApplication5
1.102 +#define EKeyOperator EKeyApplication6
1.103 +#define EKeyQwertyOn EKeyApplication7
1.104 +#define EKeyQwertyOff EKeyApplication8
1.105 +#define EKeyNext EKeyApplication9
1.106 +#define EKeyPrevious EKeyApplicationA
1.107 +#define EKeyHoldSwitch EKeyApplicationB
1.108 +#define EKeyZoomIn EKeyApplicationC
1.109 +#define EKeyZoomOut EKeyApplicationD
1.110 +#define EKey4x10QwertyOn EKeyApplicationE
1.111 +#define EKey3x11QwertyOn EKeyApplication10
1.112 +#define EKeyHalfQwertyOn EKeyApplication11
1.113 +#define EKeyCustomKeyboardOn EKeyApplication12