示例#1
0
static uint8_t pushKeyindexBuffer(uint8_t xKeyidx, bool xIsDown){
   

    if(xIsDown){    // down

        makeReportBuffer(xKeyidx, true);
        makeReportBufferExtra(xKeyidx, true);
        makeReportBufferSystem(xKeyidx, true);

    }else{  // up

        makeReportBuffer(xKeyidx, false);
        makeReportBufferExtra(xKeyidx, false);
        makeReportBufferSystem(xKeyidx, false);
    }

    return 1;    
}
示例#2
0
static uint8_t pushKeyindexBuffer(uint8_t xKeyidx, bool xIsDown){
   
   // DBG1(0x02, (uchar *)&xKeyidx, 3);
 
    uint8_t gKeyidx; 
  
    gKeyidx = xKeyidx;  
    
    if(xIsDown){    // down

        makeReportBuffer(gKeyidx, true);
        makeReportBufferExtra(gKeyidx, true);        
        makeReportBufferSystem(gKeyidx, true);

    }else{  // up

        makeReportBuffer(gKeyidx, false);
        makeReportBufferExtra(gKeyidx, false);
        makeReportBufferSystem(gKeyidx, false);
    }

    return 1;    
}