| epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 1 |  | 
| reed@android.com | 8a1c16f | 2008-12-17 15:59:43 +0000 | [diff] [blame] | 2 | /* | 
| epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 3 |  * Copyright 2006 The Android Open Source Project | 
| reed@android.com | 8a1c16f | 2008-12-17 15:59:43 +0000 | [diff] [blame] | 4 |  * | 
| epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 5 |  * Use of this source code is governed by a BSD-style license that can be | 
 | 6 |  * found in the LICENSE file. | 
| reed@android.com | 8a1c16f | 2008-12-17 15:59:43 +0000 | [diff] [blame] | 7 |  */ | 
 | 8 |  | 
| epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 9 |  | 
| reed@android.com | 8a1c16f | 2008-12-17 15:59:43 +0000 | [diff] [blame] | 10 | #ifndef SkKey_DEFINED | 
 | 11 | #define SkKey_DEFINED | 
 | 12 |  | 
 | 13 | #include "SkTypes.h" | 
 | 14 |  | 
 | 15 | enum SkKey { | 
| rmistry@google.com | fbfcd56 | 2012-08-23 18:09:54 +0000 | [diff] [blame] | 16 |     //reordering these to match android.app.KeyEvent | 
| reed@android.com | 8a1c16f | 2008-12-17 15:59:43 +0000 | [diff] [blame] | 17 |     kNONE_SkKey,    //corresponds to android's UNKNOWN | 
| rmistry@google.com | fbfcd56 | 2012-08-23 18:09:54 +0000 | [diff] [blame] | 18 |  | 
| reed@android.com | 8a1c16f | 2008-12-17 15:59:43 +0000 | [diff] [blame] | 19 |     kLeftSoftKey_SkKey, | 
 | 20 |     kRightSoftKey_SkKey, | 
 | 21 |  | 
 | 22 |     kHome_SkKey,    //!< the home key - added to match android | 
 | 23 |     kBack_SkKey,    //!< (CLR) | 
 | 24 |     kSend_SkKey,    //!< the green (talk) key | 
 | 25 |     kEnd_SkKey,     //!< the red key | 
| rmistry@google.com | fbfcd56 | 2012-08-23 18:09:54 +0000 | [diff] [blame] | 26 |  | 
| reed@android.com | 8a1c16f | 2008-12-17 15:59:43 +0000 | [diff] [blame] | 27 |     k0_SkKey, | 
 | 28 |     k1_SkKey, | 
 | 29 |     k2_SkKey, | 
 | 30 |     k3_SkKey, | 
 | 31 |     k4_SkKey, | 
 | 32 |     k5_SkKey, | 
 | 33 |     k6_SkKey, | 
 | 34 |     k7_SkKey, | 
 | 35 |     k8_SkKey, | 
 | 36 |     k9_SkKey, | 
 | 37 |     kStar_SkKey,    //!< the * key | 
 | 38 |     kHash_SkKey,    //!< the # key | 
 | 39 |  | 
 | 40 |     kUp_SkKey, | 
 | 41 |     kDown_SkKey, | 
 | 42 |     kLeft_SkKey, | 
 | 43 |     kRight_SkKey, | 
 | 44 |  | 
 | 45 |     kOK_SkKey,      //!< the center key | 
 | 46 |  | 
 | 47 |     kVolUp_SkKey,   //!< volume up - match android | 
 | 48 |     kVolDown_SkKey, //!< volume down - same | 
 | 49 |     kPower_SkKey,   //!< power button - same | 
 | 50 |     kCamera_SkKey,  //!< camera         - same | 
 | 51 |  | 
 | 52 |     kSkKeyCount | 
 | 53 | }; | 
 | 54 |  | 
| reed@google.com | 4d5c26d | 2013-01-08 16:17:50 +0000 | [diff] [blame] | 55 | enum SkModifierKeys { | 
 | 56 |     kShift_SkModifierKey    = 1 << 0, | 
 | 57 |     kControl_SkModifierKey  = 1 << 1, | 
 | 58 |     kOption_SkModifierKey   = 1 << 2,   // same as ALT | 
 | 59 |     kCommand_SkModifierKey  = 1 << 3, | 
 | 60 | }; | 
 | 61 |  | 
| reed@android.com | 8a1c16f | 2008-12-17 15:59:43 +0000 | [diff] [blame] | 62 | #endif |