в рамках темы http://radiokot.ru/forum/viewtopic.php?f=24&t=102660. возник вопрос, как в hid репорте отдать комбинацию клавиш? сколько гуглил так и не нашел.
в исходном проекте репорт формируется так:
Код: Выделить всё
static void buildReport(void)
{
uchar key = 0; //if not changed by the if-statement below, then send an empty report
if(reportCount == 0){
if (buttonState == 1){ // if button is not pressed
key = 0x30; // key = ]
} else {
key = 0x2F; // key = [
}
}
reportCount++;
reportBuffer[0] = 0; /* no modifiers */
reportBuffer[1] = key;
}


