summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2014-05-22 12:05:52 +0200
committerGerd Hoffmann <kraxel@redhat.com>2014-05-26 08:41:02 +0200
commit3f9a6e852eec56453a423a9564499fa2305f1cb4 (patch)
tree9957c15ff6099114463eff41b91f2011a8f62f70 /ui
parentaea7947c74e67e35352d6e7de2a06c8826c2c24d (diff)
downloadqemu-3f9a6e852eec56453a423a9564499fa2305f1cb4.tar.gz
qemu-3f9a6e852eec56453a423a9564499fa2305f1cb4.tar.bz2
qemu-3f9a6e852eec56453a423a9564499fa2305f1cb4.zip
console: add kbd_put_keysym_console
So you can send keysyms to a specific (text terminal) console. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/console.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/ui/console.c b/ui/console.c
index f6ce0ef94c..75ec3afcf7 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -1056,13 +1056,11 @@ static void kbd_send_chars(void *opaque)
}
/* called when an ascii key is pressed */
-void kbd_put_keysym(int keysym)
+void kbd_put_keysym_console(QemuConsole *s, int keysym)
{
- QemuConsole *s;
uint8_t buf[16], *q;
int c;
- s = active_console;
if (!s || (s->console_type == GRAPHIC_CONSOLE))
return;
@@ -1111,6 +1109,11 @@ void kbd_put_keysym(int keysym)
}
}
+void kbd_put_keysym(int keysym)
+{
+ kbd_put_keysym_console(active_console, keysym);
+}
+
static void text_console_invalidate(void *opaque)
{
QemuConsole *s = (QemuConsole *) opaque;