qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] b771f4: kbd: add brazil kbd keys to qemu


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] b771f4: kbd: add brazil kbd keys to qemu
Date: Fri, 29 May 2015 06:30:06 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: b771f470f3e2f99f585eaae68147f0c849fd1f8d
      
https://github.com/qemu/qemu/commit/b771f470f3e2f99f585eaae68147f0c849fd1f8d
  Author: Gerd Hoffmann <address@hidden>
  Date:   2015-05-29 (Fri, 29 May 2015)

  Changed paths:
    M qapi-schema.json
    M ui/input-keymap.c

  Log Message:
  -----------
  kbd: add brazil kbd keys to qemu

The brazilian computer keyboard layout has two extra keys (compared to
the usual 105-key intl ps/2 keyboard).  This patch makes these two keys
known to qemu.

For historic reasons qemu has two ways to specify a key:  A QKeyCode
(name-based) or a number (ps/2 scancode based).  Therefore we have to
update multiple places to make new keys known to qemu:

  (1) The QKeyCode definition in qapi-schema.json
  (2) The QKeyCode <-> number mapping table in ui/input-keymap.c

This patch does just that.  With this patch applied you can send those
two keys to the guest using the send-key monitor command.

Cc: address@hidden
Signed-off-by: Gerd Hoffmann <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>
Reviewed-by: Daniel P. Berrange <address@hidden>
Reviewed-by: Michael Tokarev <address@hidden>


  Commit: 33aa30cafcce053b833f9fe09fbb88e2f54b93aa
      
https://github.com/qemu/qemu/commit/33aa30cafcce053b833f9fe09fbb88e2f54b93aa
  Author: Gerd Hoffmann <address@hidden>
  Date:   2015-05-29 (Fri, 29 May 2015)

  Changed paths:
    M ui/x_keymap.c

  Log Message:
  -----------
  kbd: add brazil kbd keys to x11 evdev map

This patch adds the two extra brazilian keys to the evdev keymap for
X11.  This patch gets the two keys going with the vnc, gtk and sdl1
UIs.

The SDL2 library complains it doesn't know these keys, so the SDL2
library must be fixed before we can update ui/sdl2-keymap.h

Cc: address@hidden
Signed-off-by: Gerd Hoffmann <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>
Reviewed-by: Daniel P. Berrange <address@hidden>
Reviewed-by: Michael Tokarev <address@hidden>


  Commit: 2fe7c31832a345cdc34314cdcd5478d06b884842
      
https://github.com/qemu/qemu/commit/2fe7c31832a345cdc34314cdcd5478d06b884842
  Author: Gerd Hoffmann <address@hidden>
  Date:   2015-05-29 (Fri, 29 May 2015)

  Changed paths:
    A include/standard-headers/linux/input.h
    M scripts/update-linux-headers.sh

  Log Message:
  -----------
  virtio-input: add linux/input.h

Linux input layer (evdev) header file.

Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: f73ddbad397f98c1d476ffbf93d65af1cfa796e6
      
https://github.com/qemu/qemu/commit/f73ddbad397f98c1d476ffbf93d65af1cfa796e6
  Author: Gerd Hoffmann <address@hidden>
  Date:   2015-05-29 (Fri, 29 May 2015)

  Changed paths:
    M hw/input/Makefile.objs
    A hw/input/virtio-input.c
    A include/hw/virtio/virtio-input.h
    M include/hw/virtio/virtio.h

  Log Message:
  -----------
  virtio-input: core code & base class [device]

This patch adds virtio-input support to qemu.  It brings a abstract
base class providing core support, other classes can build on it to
actually implement input devices.

virtio-input basically sends linux input layer events (evdev) over
virtio.

Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: 55a1d80a41032d6133adec041c0096820beaa1b7
      
https://github.com/qemu/qemu/commit/55a1d80a41032d6133adec041c0096820beaa1b7
  Author: Gerd Hoffmann <address@hidden>
  Date:   2015-05-29 (Fri, 29 May 2015)

  Changed paths:
    M hw/input/Makefile.objs
    A hw/input/virtio-input-hid.c
    M include/hw/virtio/virtio-input.h

  Log Message:
  -----------
  virtio-input: emulated devices [device]

This patch adds the virtio-input-hid base class and
virtio-{keyboard,mouse,tablet} subclasses building on the base class.
They are hooked up to the qemu input core and deliver input events
to the guest like all other hid devices (ps/2 kbd, usb tablet, ...).

Using them is as simple as adding "-device virtio-tablet-device" to
your command line, for use all transports except pci.  virtio-pci
support comes as separate patch, once virtio-pci got virtio 1.0
support.

Signed-off-by: Gerd Hoffmann <address@hidden>


  Commit: 9441aa282bc3213ef0530cab86f318b877bac25c
      
https://github.com/qemu/qemu/commit/9441aa282bc3213ef0530cab86f318b877bac25c
  Author: Peter Maydell <address@hidden>
  Date:   2015-05-29 (Fri, 29 May 2015)

  Changed paths:
    M hw/input/Makefile.objs
    A hw/input/virtio-input-hid.c
    A hw/input/virtio-input.c
    A include/hw/virtio/virtio-input.h
    M include/hw/virtio/virtio.h
    A include/standard-headers/linux/input.h
    M qapi-schema.json
    M scripts/update-linux-headers.sh
    M ui/input-keymap.c
    M ui/x_keymap.c

  Log Message:
  -----------
  Merge remote-tracking branch 'remotes/kraxel/tags/pull-input-20150529-1' into 
staging

kbd: add support for brazilian keyboard (two extra keys).
input: add virtio-input devices.

# gpg: Signature made Fri May 29 10:09:02 2015 BST using RSA key ID D3E87138
# gpg: Good signature from "Gerd Hoffmann (work) <address@hidden>"
# gpg:                 aka "Gerd Hoffmann <address@hidden>"
# gpg:                 aka "Gerd Hoffmann (private) <address@hidden>"

* remotes/kraxel/tags/pull-input-20150529-1:
  virtio-input: emulated devices [device]
  virtio-input: core code & base class [device]
  virtio-input: add linux/input.h
  kbd: add brazil kbd keys to x11 evdev map
  kbd: add brazil kbd keys to qemu

Signed-off-by: Peter Maydell <address@hidden>


Compare: https://github.com/qemu/qemu/compare/ba7c388963e0...9441aa282bc3

reply via email to

[Prev in Thread] Current Thread [Next in Thread]