 
 void handle_buttons() {
   switch (frame.get_byte(2)) {
-    case NAV_BACK:
+    case BUTTON_BACK:
       if (!lastBackDown) 
         Keyboard.press(KEY_ESC); 
        
       lastBackDown = currentMillis;
       break;
       
-    case NAV_ENTER:
+    case BUTTON_ENTER:
       if (!lastEnterDown)
         Mouse.press(); 
       

// BTN_RIGHT      20 8 0 0 0 F7
// IGN_KEY_ON     50 E 0 F1

#define NAV_UP 1
#define NAV_DOWN 2
#define NAV_LEFT 4
#define NAV_RIGHT 8
#define NAV_BACK 1
#define NAV_ENTER 8

LinFrame frame = LinFrame();



void handle_joystic() {
  switch (frame.get_byte(1)) {
    case JOYSTICK_UP:
      move_mouse(0, -1);
      break;
    case JOYSTICK_DOWN:
      move_mouse(0, 1);
      break;
    case JOYSTICK_LEFT:
      move_mouse(-1, 0);
      break;
    case JOYSTICK_RIGHT:
      move_mouse(1, 0);
      break;
  }  
