Home | History | Annotate | Download | only in views
      1 /*
      2  * Copyright (C) 2006 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 #ifndef SkKey_DEFINED
     18 #define SkKey_DEFINED
     19 
     20 #include "SkTypes.h"
     21 
     22 enum SkKey {
     23     //reordering these to match android.app.KeyEvent
     24     kNONE_SkKey,    //corresponds to android's UNKNOWN
     25 
     26     kLeftSoftKey_SkKey,
     27     kRightSoftKey_SkKey,
     28 
     29     kHome_SkKey,    //!< the home key - added to match android
     30     kBack_SkKey,    //!< (CLR)
     31     kSend_SkKey,    //!< the green (talk) key
     32     kEnd_SkKey,     //!< the red key
     33 
     34     k0_SkKey,
     35     k1_SkKey,
     36     k2_SkKey,
     37     k3_SkKey,
     38     k4_SkKey,
     39     k5_SkKey,
     40     k6_SkKey,
     41     k7_SkKey,
     42     k8_SkKey,
     43     k9_SkKey,
     44     kStar_SkKey,    //!< the * key
     45     kHash_SkKey,    //!< the # key
     46 
     47     kUp_SkKey,
     48     kDown_SkKey,
     49     kLeft_SkKey,
     50     kRight_SkKey,
     51 
     52     kOK_SkKey,      //!< the center key
     53 
     54     kVolUp_SkKey,   //!< volume up - match android
     55     kVolDown_SkKey, //!< volume down - same
     56     kPower_SkKey,   //!< power button - same
     57     kCamera_SkKey,  //!< camera         - same
     58 
     59     kSkKeyCount
     60 };
     61 
     62 #endif
     63 
     64