#include <stdio.h>
#include <signal.h>
static int running = 0;
static void __on_pause_press(void)
{
printf("Pause Pressed\n");
return;
}
static void __on_pause_release(void)
{
printf("Pause Released\n");
return;
}
static void __on_mode_press(void)
{
printf("Mode Pressed\n");
return;
}
static void __on_mode_release(void)
{
printf("Mode Released\n");
return;
}
static void __signal_handler(__attribute__ ((unused)) int dummy)
{
running=0;
return;
}
int main()
{
fprintf(stderr,"ERROR: failed to init buttons\n");
return -1;
}
fprintf(stderr,"ERROR: failed to init buttons\n");
return -1;
}
signal(SIGINT, __signal_handler);
running = 1;
printf("Press buttons to see response\n");
return 0;
}