michael@0: michael@0: /* michael@0: * Copyright 2006 The Android Open Source Project michael@0: * michael@0: * Use of this source code is governed by a BSD-style license that can be michael@0: * found in the LICENSE file. michael@0: */ michael@0: michael@0: michael@0: #ifndef SkKey_DEFINED michael@0: #define SkKey_DEFINED michael@0: michael@0: #include "SkTypes.h" michael@0: michael@0: enum SkKey { michael@0: //reordering these to match android.app.KeyEvent michael@0: kNONE_SkKey, //corresponds to android's UNKNOWN michael@0: michael@0: kLeftSoftKey_SkKey, michael@0: kRightSoftKey_SkKey, michael@0: michael@0: kHome_SkKey, //!< the home key - added to match android michael@0: kBack_SkKey, //!< (CLR) michael@0: kSend_SkKey, //!< the green (talk) key michael@0: kEnd_SkKey, //!< the red key michael@0: michael@0: k0_SkKey, michael@0: k1_SkKey, michael@0: k2_SkKey, michael@0: k3_SkKey, michael@0: k4_SkKey, michael@0: k5_SkKey, michael@0: k6_SkKey, michael@0: k7_SkKey, michael@0: k8_SkKey, michael@0: k9_SkKey, michael@0: kStar_SkKey, //!< the * key michael@0: kHash_SkKey, //!< the # key michael@0: michael@0: kUp_SkKey, michael@0: kDown_SkKey, michael@0: kLeft_SkKey, michael@0: kRight_SkKey, michael@0: michael@0: kOK_SkKey, //!< the center key michael@0: michael@0: kVolUp_SkKey, //!< volume up - match android michael@0: kVolDown_SkKey, //!< volume down - same michael@0: kPower_SkKey, //!< power button - same michael@0: kCamera_SkKey, //!< camera - same michael@0: michael@0: kSkKeyCount michael@0: }; michael@0: michael@0: enum SkModifierKeys { michael@0: kShift_SkModifierKey = 1 << 0, michael@0: kControl_SkModifierKey = 1 << 1, michael@0: kOption_SkModifierKey = 1 << 2, // same as ALT michael@0: kCommand_SkModifierKey = 1 << 3, michael@0: }; michael@0: michael@0: #endif