#include <stdlib.h>
  #include <linux/input.h>
  static int event0_fd = -1;
  struct input_event ev0[64];
  static int handle_event0() {
      int butt i rd;
      rd = read(event0_fd, ev0, sizeof(struct input_event) * 64);
      if ( rd < sizeof(struct input_event) ) return 0;
      for (i = 0; i < rd / sizeof(struct input_event); i++) {
          if (ev0[i].type == 1&&ev0[i].value == 1) {
        printf("The key code is: =\n", ev0[i].code);
              if (ev0[i].code == 158) {
                  return 0;
              }
          } 
         
      }
      return 1;
  }
  int main(void) {
   int d>
      event0_fd = open("/dev/input/event0", O_RDWR);
      if ( event0_fd < 0 )
          return -1;
    printf("Start...\n");
      while ( done ) {
          d>
      }