mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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>
This commit is contained in:
parent
aea7947c74
commit
3f9a6e852e
2 changed files with 7 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue