|
发表于 2008-9-18 15:59:15
|
显示全部楼层
如果你不想把end键定power,而是用power,可以在keypad_def.c进行如下的改动:
/* row 0 */
DEVICE_KEY_SEND,
DEVICE_KEY_SK_LEFT,
DEVICE_KEY_VOL_UP,
DEVICE_KEY_VOL_DOWN,
DEVICE_KEY_NONE,
DEVICE_KEY_NONE,
DEVICE_KEY_POWER,
/* row 1 */
DEVICE_KEY_UP,
DEVICE_KEY_MENU,
DEVICE_KEY_FUNCTION,
DEVICE_KEY_SK_RIGHT,
DEVICE_KEY_NONE,
DEVICE_KEY_NONE,
DEVICE_KEY_POWER,
/* row 2 */
DEVICE_KEY_DOWN,
DEVICE_KEY_1,
DEVICE_KEY_2,
DEVICE_KEY_3,
DEVICE_KEY_NONE,
DEVICE_KEY_NONE,
DEVICE_KEY_POWER,
/* row 3 */
DEVICE_KEY_LEFT,
DEVICE_KEY_4,
DEVICE_KEY_5,
DEVICE_KEY_6,
DEVICE_KEY_NONE,
DEVICE_KEY_NONE,
DEVICE_KEY_POWER,
/* row 4 */
DEVICE_KEY_RIGHT,
DEVICE_KEY_7,
DEVICE_KEY_8,
DEVICE_KEY_9,
DEVICE_KEY_NONE,
DEVICE_KEY_NONE,
DEVICE_KEY_POWER,
/* row 5 */
DEVICE_KEY_NONE,
DEVICE_KEY_STAR,
DEVICE_KEY_0,
DEVICE_KEY_HASH,
DEVICE_KEY_NONE,
DEVICE_KEY_NONE,
DEVICE_KEY_POWER,
#else /* __CUST_NEW__ */
KEYPAD_MAPPING
#endif /* __CUST_NEW__ */
},
/*power on period*/
Custom_Keypress_Period,
/*powerkey position*/
#ifndef __CUST_NEW__
/*powerkey position*/
DEVICE_KEY_POWER
#else /* __CUST_NEW__ */
POWERKEY_POSITION
#endif /* __CUST_NEW__ */ |
|