Diff for /qemu/hw/stellaris_input.c between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2018/04/24 16:48:46 version 1.1.1.2, 2018/04/24 16:53:28
Line 47  static void stellaris_gamepad_put_key(vo Line 47  static void stellaris_gamepad_put_key(vo
     s->extension = 0;      s->extension = 0;
 }  }
   
   static void stellaris_gamepad_save(QEMUFile *f, void *opaque)
   {
       gamepad_state *s = (gamepad_state *)opaque;
       int i;
   
       qemu_put_be32(f, s->extension);
       for (i = 0; i < s->num_buttons; i++)
           qemu_put_byte(f, s->buttons[i].pressed);
   }
   
   static int stellaris_gamepad_load(QEMUFile *f, void *opaque, int version_id)
   {
       gamepad_state *s = (gamepad_state *)opaque;
       int i;
   
       if (version_id != 1)
           return -EINVAL;
   
       s->extension = qemu_get_be32(f);
       for (i = 0; i < s->num_buttons; i++)
           s->buttons[i].pressed = qemu_get_byte(f);
   
       return 0;
   }
   
 /* Returns an array 5 ouput slots.  */  /* Returns an array 5 ouput slots.  */
 void stellaris_gamepad_init(int n, qemu_irq *irq, const int *keycode)  void stellaris_gamepad_init(int n, qemu_irq *irq, const int *keycode)
 {  {
Line 61  void stellaris_gamepad_init(int n, qemu_ Line 86  void stellaris_gamepad_init(int n, qemu_
     }      }
     s->num_buttons = n;      s->num_buttons = n;
     qemu_add_kbd_event_handler(stellaris_gamepad_put_key, s);      qemu_add_kbd_event_handler(stellaris_gamepad_put_key, s);
       register_savevm("stellaris_gamepad", -1, 1,
                       stellaris_gamepad_save, stellaris_gamepad_load, s);
 }  }
   
   

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


unix.superglobalmegacorp.com