blob: fae44b3818184b39ac793b24427f76525cb7ec5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <stdio.h>
#include "dome_key_map.h"
#define SIZE 2
int main() {
HeadphoneButton buttons[SIZE] = {HeadphoneButton_Play, HeadphoneButton_Down};
Trigger trigger = {
.buttons = buttons,
.length = SIZE
};
const CKeyActionResult *result = c_run_key_action(&trigger);
printf("%s", result->action);
return 0;
}
|