Displaying 2 results from an estimated 2 matches for "kbd_put_keycod".
Did you mean:
  kbd_put_keycode
  
2011 Nov 16
9
extending qemu-dm
...e keyboard/mouse that qemu provides (and then
using this version of qemu-dm only for this special case).
I''ve been looking through the 4.1.0 source, specifically in
tools/ioemu-qemu-xen, and it appears that I''d want to (for the keyboard)
pass key codes from /dev/input through the kbd_put_keycode function.  From
what I can tell, I''d probably want to split off a thread to do this
somewhere in main() in vl.c.  I was hoping that I could get some
confirmation about whether I''m looking in the right places and/or
suggestions about how to cleanly implement this.  Odds are I won&...
2010 Sep 02
6
[PATCH]ioemu: fix altgr-insert behavior
...&& keysym <= kr->end){
+            return 1;
+ }
+    return 0;
+}
+
diff -r 17723c0b042b vnc.c
--- a/vnc.c Thu Sep 02 16:40:39 2010 +0800
+++ b/vnc.c Thu Sep 02 17:26:53 2010 +0800
@@ -1274,12 +1274,27 @@
     }
 }
 
+static void press_key_altgr_down(VncState *vs, int down)
+{
+    kbd_put_keycode(0xe0);
+    if (down){
+        kbd_put_keycode(0xb8 & 0x7f);
+        vs->modifiers_state[0xb8] = 1;
+    }
+    else {
+        kbd_put_keycode(0xb8 | 0x80);
+        vs->modifiers_state[0xb8] = 0;
+    }
+}
+
 static void do_key_event(VncState *vs, int down, uint32_t sym)
 {
     int...