按键表格

////////////////////////////////////////////////////
    KEY_SINGLE_0,
    KEY_SINGLE_1,
    KEY_SINGLE_2,
    KEY_SINGLE_3,
    KEY_SINGLE_4,
    KEY_SINGLE_5,
    KEY_SINGLE_6,
    KEY_SINGLE_7,
    KEY_SINGLE_8,
    KEY_SINGLE_9,
    KEY_LONG_0,
    KEY_LONG_1,
    KEY_LONG_2,
    KEY_LONG_3,
    KEY_LONG_4,
    KEY_LONG_5,
    KEY_LONG_6,
    KEY_LONG_7,
    KEY_LONG_8,
    KEY_LONG_9,
    KEY_HOLD_0,
    KEY_HOLD_1,
    KEY_HOLD_2,
    KEY_HOLD_3,
    KEY_HOLD_4,
    KEY_HOLD_5,
    KEY_HOLD_6,
    KEY_HOLD_7,
    KEY_HOLD_8,
    KEY_HOLD_9,
    KEY_UP_LIFT_0,
    KEY_UP_LIFT_1,
    KEY_UP_LIFT_2,
    KEY_UP_LIFT_3,
    KEY_UP_LIFT_4,
    KEY_UP_LIFT_5,
    KEY_UP_LIFT_6,
    KEY_UP_LIFT_7,
    KEY_UP_LIFT_8,
    KEY_UP_LIFT_9,
    KEY_DOUBLE_0,
    KEY_DOUBLE_1,
    KEY_DOUBLE_2,
    KEY_DOUBLE_3,
    KEY_DOUBLE_4,
    KEY_DOUBLE_5,
    KEY_DOUBLE_6,
    KEY_DOUBLE_7,
    KEY_DOUBLE_8,
    KEY_DOUBLE_9,
    KEY_TRIPLE_0,
    KEY_TRIPLE_1,
    KEY_TRIPLE_2,
    KEY_TRIPLE_3,
    KEY_TRIPLE_4,
    KEY_TRIPLE_5,
    KEY_TRIPLE_6,
    KEY_TRIPLE_7,
    KEY_TRIPLE_8,
    KEY_TRIPLE_9,
///////////////////////////////////////////////////

 

        //单击          //长按      //hold         //抬起            //双击          //三击
    [0] = {
        KEY_SINGLE_0, KEY_LONG_0, KEY_HOLD_0,    KEY_UP_LIFT_0,    KEY_DOUBLE_0,  KEY_TRIPLE_0
    },
    [1] = {
        KEY_SINGLE_1, KEY_LONG_1, KEY_HOLD_1,    KEY_UP_LIFT_1,    KEY_DOUBLE_1,  KEY_TRIPLE_1
    },
    [2] = {
        KEY_SINGLE_2, KEY_LONG_2, KEY_HOLD_2,    KEY_UP_LIFT_2,    KEY_DOUBLE_2,  KEY_TRIPLE_2
    },
    [3] = {
        KEY_SINGLE_3, KEY_LONG_3, KEY_HOLD_3,    KEY_UP_LIFT_3,    KEY_DOUBLE_3,  KEY_TRIPLE_3
    },
    [4] = {
        KEY_SINGLE_4, KEY_LONG_4, KEY_HOLD_4,    KEY_UP_LIFT_4,    KEY_DOUBLE_4,  KEY_TRIPLE_4
    },
    [5] = {
        KEY_SINGLE_5, KEY_LONG_5, KEY_HOLD_5,    KEY_UP_LIFT_5,    KEY_DOUBLE_5,  KEY_TRIPLE_5
    },
    [6] = {
        KEY_SINGLE_6, KEY_LONG_6, KEY_HOLD_6,    KEY_UP_LIFT_6,    KEY_DOUBLE_6,  KEY_TRIPLE_6
    },
    [7] = {
        KEY_SINGLE_7, KEY_LONG_7, KEY_HOLD_7,    KEY_UP_LIFT_7,    KEY_DOUBLE_7,  KEY_TRIPLE_7
    },
    [8] = {
        KEY_SINGLE_8, KEY_LONG_8, KEY_HOLD_8,    KEY_UP_LIFT_8,    KEY_DOUBLE_8,  KEY_TRIPLE_8
    },
    [9] = {
        KEY_SINGLE_9, KEY_LONG_9, KEY_HOLD_9,    KEY_UP_LIFT_9,    KEY_DOUBLE_9,  KEY_TRIPLE_9
    },

 

posted @ 2024-04-02 19:54  败人两字非傲即惰  阅读(3)  评论(0编辑  收藏  举报