Home | History | Annotate | Download | only in views
      1 
      2 /*
      3  * Copyright 2006 The Android Open Source Project
      4  *
      5  * Use of this source code is governed by a BSD-style license that can be
      6  * found in the LICENSE file.
      7  */
      8 
      9 
     10 #ifndef SkKey_DEFINED
     11 #define SkKey_DEFINED
     12 
     13 #include "SkTypes.h"
     14 
     15 enum SkKey {
     16     //reordering these to match android.app.KeyEvent
     17     kNONE_SkKey,    //corresponds to android's UNKNOWN
     18 
     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
     26 
     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 
     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 
     62 #endif
     63