1. 05 3月, 2014 1 次提交
  2. 03 12月, 2013 1 次提交
  3. 23 8月, 2013 1 次提交
  4. 23 5月, 2013 1 次提交
  5. 25 4月, 2013 2 次提交
  6. 19 4月, 2013 1 次提交
  7. 11 2月, 2013 1 次提交
  8. 19 12月, 2012 5 次提交
  9. 27 9月, 2012 3 次提交
  10. 06 9月, 2012 2 次提交
    • A
      qapi: convert sendkey · e4c8f004
      Amos Kong 提交于
      Convert 'sendkey' to use QAPI.
      
      QAPI passes key's index of mapping table to qmp_send_key(),
      not keycode. So we use help functions to convert key/code to
      index of key_defs, and 'index' will be converted to 'keycode'
      inside qmp_send_key().
      
      For qmp, QAPI would check invalid key and raise error.
      For hmp, invalid key is checked in hmp_send_key().
      
      'send-key' of QMP doesn't support key in hexadecimal format.
      Signed-off-by: NAmos Kong <akong@redhat.com>
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      e4c8f004
    • A
      monitor: move key_defs[] table and introduce two help functions · 1048c88f
      Amos Kong 提交于
      This patch added two help functions to convert key/code to index of
      mapping table, those functions will return Q_KEY_CODE_MAX if the
      code/key is invalid.
      
      Patch also moved key_defs[] to input.c, and removed useless KeyDef struct.
      Key's index in QKeyCode enmu is same as keycode's index in new key_defs[].
      Monitor functions were changed to access key_defs[] directly.
      
      key_defs[] is used in do_send_key(), so export key_defs[]. It will be
      changed to static in next patch.
      Signed-off-by: NAmos Kong <akong@redhat.com>
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      1048c88f
  11. 09 5月, 2012 1 次提交
    • L
      runstate: introduce suspended state · ad02b96a
      Luiz Capitulino 提交于
      QEMU enters in this state when the guest suspends to ram (S3).
      
      This is important so that HMP users and QMP clients can know that
      the guest is suspended. QMP also has an event for this, but events
      are not reliable and are limited (ie. a client can connect to QEMU
      after the event has been emitted).
      
      Having a different state for S3 brings a new issue, though. Every
      device that doesn't run when the VM is stopped but wants to run
      when the VM is suspended has to check for RUN_STATE_SUSPENDED
      explicitly. This is the case for the keyboard and mouse devices,
      for example.
      Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
      Acked-by: NGerd Hoffmann <kraxel@redhat.com>
      ad02b96a
  12. 18 2月, 2012 1 次提交
  13. 17 2月, 2012 1 次提交
  14. 27 10月, 2011 1 次提交
  15. 21 8月, 2011 1 次提交
  16. 24 7月, 2011 1 次提交
  17. 05 7月, 2011 1 次提交
  18. 09 4月, 2011 1 次提交
  19. 15 6月, 2010 1 次提交
  20. 02 6月, 2010 1 次提交
  21. 20 3月, 2010 4 次提交
    • A
      Expose whether a mouse is an absolute device via QMP and the human monitor. · 1aaee43c
      Anthony Liguori 提交于
      For QMP, we just add an attribute which is backwards compatible.  For the human
      monitor, we add (absolute) to the end of the line.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      1aaee43c
    • A
      Add notifier for mouse mode changes · 7e581fb3
      Anthony Liguori 提交于
      Right now, DisplayState clients rely on polling the mouse mode to determine
      when the device is changed to an absolute device.  Use a notification list to
      add an explicit notification.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      7e581fb3
    • A
      Add kbd_mouse_has_absolute() · eb2e259d
      Anthony Liguori 提交于
      kbd_mouse_is_absolute tells us whether the current mouse handler is an absolute
      device.  kbd_mouse_has_absolute tells us whether we have any device that is
      capable of absolute input.
      
      This lets us tell a user that they have configured an absolute device but that
      the guest is not currently using it.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      eb2e259d
    • A
      Rewrite mouse handlers to use QTAILQ and to have an activation function · 6fef28ee
      Anthony Liguori 提交于
      And convert usb-hid to use it (to avoid regression with bisection)
      
      Right now, when we do info mice and we've added a usb tablet, we don't see it
      until the guest starts using the tablet.  We implement this behavior in order
      to provide a means to delay registration of a mouse handler since we treat
      the last registered handler as the current handler.
      
      This is a usability problem though as we would like to give the user feedback
      that they've either 1) not added an absolute device 2) there is an absolute
      device but the guest isn't using it 3) we have an absolute device and it's
      active.
      
      By using QTAILQ and having an explicit activation function that moves the
      handler to the front of the queue, we can implement the same semantics as
      before with respect to automatically switching to usb tablet while providing
      the user with a whole lot more information.
      Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
      6fef28ee
  22. 09 3月, 2010 1 次提交
  23. 14 1月, 2010 1 次提交