1. 16 10月, 2017 2 次提交
    • D
      ui: don't export qemu_input_event_new_key · 3ad35e7a
      Daniel P. Berrange 提交于
      All public code should use qemu_input_event_send_key* functions
      instead of creating an event directly.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Message-id: 20170929101201.21039-7-berrange@redhat.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      3ad35e7a
    • D
      ui: convert common input code to keycodemapdb · bcd5ac9b
      Daniel P. Berrange 提交于
      Replace the number_to_qcode, qcode_to_number and linux_to_qcode
      tables with automatically generated tables.
      
      Missing entries in linux_to_qcode now fixed:
      
        KEY_LINEFEED -> Q_KEY_CODE_LF
        KEY_KPEQUAL -> Q_KEY_CODE_KP_EQUALS
        KEY_COMPOSE -> Q_KEY_CODE_COMPOSE
        KEY_AGAIN -> Q_KEY_CODE_AGAIN
        KEY_PROPS -> Q_KEY_CODE_PROPS
        KEY_UNDO -> Q_KEY_CODE_UNDO
        KEY_FRONT -> Q_KEY_CODE_FRONT
        KEY_COPY -> Q_KEY_CODE_COPY
        KEY_OPEN -> Q_KEY_CODE_OPEN
        KEY_PASTE -> Q_KEY_CODE_PASTE
        KEY_CUT -> Q_KEY_CODE_CUT
        KEY_HELP -> Q_KEY_CODE_HELP
        KEY_MEDIA -> Q_KEY_CODE_MEDIASELECT
      
      In addition, some fixes:
      
       - KEY_PLAYPAUSE now maps to Q_KEY_CODE_AUDIOPLAY, instead of
         KEY_PLAYCD. KEY_PLAYPAUSE is defined across almost all scancodes
         sets, while KEY_PLAYCD only appears in AT set1, so the former is
         a more useful mapping.
      
      Missing entries in qcode_to_number now fixed:
      
        Q_KEY_CODE_AGAIN -> 0x85
        Q_KEY_CODE_PROPS -> 0x86
        Q_KEY_CODE_UNDO -> 0x87
        Q_KEY_CODE_FRONT -> 0x8c
        Q_KEY_CODE_COPY -> 0xf8
        Q_KEY_CODE_OPEN -> 0x64
        Q_KEY_CODE_PASTE -> 0x65
        Q_KEY_CODE_CUT -> 0xbc
        Q_KEY_CODE_LF -> 0x5b
        Q_KEY_CODE_HELP -> 0xf5
        Q_KEY_CODE_COMPOSE -> 0xdd
        Q_KEY_CODE_KP_EQUALS -> 0x59
        Q_KEY_CODE_MEDIASELECT -> 0xed
      
      In addition, some fixes:
      
       - Q_KEY_CODE_MENU was incorrectly mapped to the compose
         scancode (0xdd) and is now mapped to 0x9e
       - Q_KEY_CODE_FIND was mapped to 0xe065 (Search) instead
         of to 0xe041 (Find)
       - Q_KEY_CODE_HIRAGANA was mapped to 0x70 (Katakanahiragana)
         instead of of 0x77 (Hirigana)
       - Q_KEY_CODE_PRINT was mapped to 0xb7 which is not a defined
         scan code in AT set 1, it is now mapped to 0x54 (sysrq)
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Message-id: 20170929101201.21039-5-berrange@redhat.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      bcd5ac9b
  2. 27 7月, 2017 1 次提交
  3. 11 5月, 2017 1 次提交
  4. 15 9月, 2016 1 次提交
  5. 08 3月, 2016 1 次提交
    • G
      input: linux evdev support · e0d2bd51
      Gerd Hoffmann 提交于
      This patch adds support for reading input events directly from linux
      evdev devices and forward them to the guest.  Unlike virtio-input-host
      which simply passes on all events to the guest without looking at them
      this will interpret the events and feed them into the qemu input
      subsystem.
      
      Therefore this is limited to what the qemu input subsystem and the
      emulated input devices are able to handle.  Also there is no support for
      absolute coordinates (tablet/touchscreen).  So we are talking here about
      basic mouse and keyboard support.
      
      The advantage is that it'll work without virtio-input drivers in the
      guest, the events are delivered to the usual ps/2 or usb input devices
      (depending on what the machine happens to have).  And for keyboards
      qemu is able to switch the keyboard between guest and host on hotkey.
      The hotkey is hard-coded for now (both control keys), initialy the
      guest owns the keyboard.
      
      Probably most useful when assigning vga devices with vfio and using a
      physical monitor instead of vnc/spice/gtk as guest display.
      
      Usage:  Add '-input-linux /dev/input/event<nr>' to the qemu command
      line.  Note that udev has rules which populate /dev/input/by-{id,path}
      with static names, which might be more convinient to use.
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      Message-id: 1457087116-4379-2-git-send-email-kraxel@redhat.com
      e0d2bd51
  6. 06 11月, 2015 1 次提交
  7. 04 6月, 2014 1 次提交
  8. 26 5月, 2014 2 次提交
  9. 16 5月, 2014 2 次提交
  10. 05 3月, 2014 5 次提交