blob: a019c281152d7c4653da65212e44e769f5ebfccd [file] [log] [blame]
epoger@google.comec3ed6a2011-07-28 14:26:00 +00001
reed@android.com8a1c16f2008-12-17 15:59:43 +00002/*
epoger@google.comec3ed6a2011-07-28 14:26:00 +00003 * Copyright 2006 The Android Open Source Project
reed@android.com8a1c16f2008-12-17 15:59:43 +00004 *
epoger@google.comec3ed6a2011-07-28 14:26:00 +00005 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
reed@android.com8a1c16f2008-12-17 15:59:43 +00007 */
8
epoger@google.comec3ed6a2011-07-28 14:26:00 +00009
reed@android.com8a1c16f2008-12-17 15:59:43 +000010#ifndef SkKey_DEFINED
11#define SkKey_DEFINED
12
13#include "SkTypes.h"
14
15enum SkKey {
rmistry@google.comfbfcd562012-08-23 18:09:54 +000016 //reordering these to match android.app.KeyEvent
reed@android.com8a1c16f2008-12-17 15:59:43 +000017 kNONE_SkKey, //corresponds to android's UNKNOWN
rmistry@google.comfbfcd562012-08-23 18:09:54 +000018
reed@android.com8a1c16f2008-12-17 15:59:43 +000019 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.comfbfcd562012-08-23 18:09:54 +000026
reed@android.com8a1c16f2008-12-17 15:59:43 +000027 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#endif
56