Skip to contentSkip to conversation

ui: darwin: gtk: Add missing input keymap

PATCH In review Keno Fischer 2 participants 3 messages Jun 13, 2018 – Jun 14, 2018 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ui: darwin: gtk: Add missing input keymap

In appears the input keymap for osx was forgotten in the commit that converted the gtk frontend to keycodemapdb. Add it.

Fixes 2ec78706 ("ui: convert GTK and SDL1 frontends to keycodemapdb")
CC Daniel P. Berrange <[email protected]>
---
 Makefile           | 1 +
 include/ui/input.h | 3 +++
 ui/input-keymap.c  | 1 +
 3 files changed, 5 insertions(+)
Makefile +1 -0
index 6a5fff0..1e79914 100644
@@ -322,6 +322,7 @@ KEYCODEMAP_FILES = \
 		 ui/input-keymap-xorgkbd-to-qcode.c \
 		 ui/input-keymap-xorgxquartz-to-qcode.c \
 		 ui/input-keymap-xorgxwin-to-qcode.c \
+		 ui/input-keymap-osx-to-qcode.c \
 		 $(NULL)
 
 GENERATED_FILES += $(KEYCODEMAP_FILES)
include/ui/input.h +3 -0
index 16395ab..34ebc67 100644
@@ -116,4 +116,7 @@ extern const guint16 qemu_input_map_xorgxquartz_to_qcode[];
 extern const guint qemu_input_map_xorgxwin_to_qcode_len;
 extern const guint16 qemu_input_map_xorgxwin_to_qcode[];
 
+extern const guint qemu_input_map_osx_to_qcode_len;
+extern const guint16 qemu_input_map_osx_to_qcode[];
+
 #endif /* INPUT_H */
ui/input-keymap.c +1 -0
index 87cc301..db5ccff 100644
@@ -21,6 +21,7 @@
 #include "ui/input-keymap-xorgkbd-to-qcode.c"
 #include "ui/input-keymap-xorgxquartz-to-qcode.c"
 #include "ui/input-keymap-xorgxwin-to-qcode.c"
+#include "ui/input-keymap-osx-to-qcode.c"
 
 int qemu_input_linux_to_qcode(unsigned int lnx)
 {
Signature · 1 line
2.8.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Keno Fischer

In appears the input keymap for osx was forgotten in the commit that converted the gtk frontend to keycodemapdb. Add it.

Fixes 2ec78706 ("ui: convert GTK and SDL1 frontends to keycodemapdb")
CC Daniel P. Berrange <[email protected]>
---
 Makefile           | 1 +
 include/ui/input.h | 3 +++
 ui/input-keymap.c  | 1 +
 3 files changed, 5 insertions(+)

I guess this shows just how (in-)frequently people try to compile the GTK frontend on OS-X :-(

Quoted 40 lines
Makefile +1 -0
index 6a5fff0..1e79914 100644
@@ -322,6 +322,7 @@ KEYCODEMAP_FILES = \
 		 ui/input-keymap-xorgkbd-to-qcode.c \
 		 ui/input-keymap-xorgxquartz-to-qcode.c \
 		 ui/input-keymap-xorgxwin-to-qcode.c \
+		 ui/input-keymap-osx-to-qcode.c \
 		 $(NULL)
 
 GENERATED_FILES += $(KEYCODEMAP_FILES)
include/ui/input.h +3 -0
index 16395ab..34ebc67 100644
@@ -116,4 +116,7 @@ extern const guint16 qemu_input_map_xorgxquartz_to_qcode[];
 extern const guint qemu_input_map_xorgxwin_to_qcode_len;
 extern const guint16 qemu_input_map_xorgxwin_to_qcode[];
 
+extern const guint qemu_input_map_osx_to_qcode_len;
+extern const guint16 qemu_input_map_osx_to_qcode[];
+
 #endif /* INPUT_H */
ui/input-keymap.c +1 -0
index 87cc301..db5ccff 100644
@@ -21,6 +21,7 @@
 #include "ui/input-keymap-xorgkbd-to-qcode.c"
 #include "ui/input-keymap-xorgxquartz-to-qcode.c"
 #include "ui/input-keymap-xorgxwin-to-qcode.c"
+#include "ui/input-keymap-osx-to-qcode.c"
 
 int qemu_input_linux_to_qcode(unsigned int lnx)
 {
Signature · 1 line
2.8.1

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
#2 lore raw

CC'ing Gerd as ui/ tree maintainer.

Quoted 53 lines · Daniel P. Berrangé
Quoted 11 lines · Keno Fischer

In appears the input keymap for osx was forgotten in the commit that converted the gtk frontend to keycodemapdb. Add it.

Fixes 2ec78706 ("ui: convert GTK and SDL1 frontends to keycodemapdb")
CC Daniel P. Berrange <[email protected]>
---
 Makefile           | 1 +
 include/ui/input.h | 3 +++
 ui/input-keymap.c  | 1 +
 3 files changed, 5 insertions(+)

I guess this shows just how (in-)frequently people try to compile the GTK frontend on OS-X :-(

Quoted 35 lines
Makefile +1 -0
index 6a5fff0..1e79914 100644
@@ -322,6 +322,7 @@ KEYCODEMAP_FILES = \
 		 ui/input-keymap-xorgkbd-to-qcode.c \
 		 ui/input-keymap-xorgxquartz-to-qcode.c \
 		 ui/input-keymap-xorgxwin-to-qcode.c \
+		 ui/input-keymap-osx-to-qcode.c \
 		 $(NULL)
 
 GENERATED_FILES += $(KEYCODEMAP_FILES)
include/ui/input.h +3 -0
index 16395ab..34ebc67 100644
@@ -116,4 +116,7 @@ extern const guint16 qemu_input_map_xorgxquartz_to_qcode[];
 extern const guint qemu_input_map_xorgxwin_to_qcode_len;
 extern const guint16 qemu_input_map_xorgxwin_to_qcode[];
 
+extern const guint qemu_input_map_osx_to_qcode_len;
+extern const guint16 qemu_input_map_osx_to_qcode[];
+
 #endif /* INPUT_H */
ui/input-keymap.c +1 -0
index 87cc301..db5ccff 100644
@@ -21,6 +21,7 @@
 #include "ui/input-keymap-xorgkbd-to-qcode.c"
 #include "ui/input-keymap-xorgxquartz-to-qcode.c"
 #include "ui/input-keymap-xorgxwin-to-qcode.c"
+#include "ui/input-keymap-osx-to-qcode.c"
 
Quoted 13 lines
Quoted 5 lines
ui/input-keymap.c +0 -0
 int qemu_input_linux_to_qcode(unsigned int lnx)
 {
Signature · 1 line
2.8.1

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|