[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 3/7] input/curses: add kbd delay between keydown and
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL 3/7] input/curses: add kbd delay between keydown and keyup events |
Date: |
Wed, 4 Jun 2014 09:44:07 +0200 |
Signed-off-by: Gerd Hoffmann <address@hidden>
---
ui/curses.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/ui/curses.c b/ui/curses.c
index de85f76..8edb038 100644
--- a/ui/curses.c
+++ b/ui/curses.c
@@ -277,31 +277,41 @@ static void curses_refresh(DisplayChangeListener *dcl)
* events, we need to emit both for each key received */
if (keycode & SHIFT) {
qemu_input_event_send_key_number(NULL, SHIFT_CODE, true);
+ qemu_input_event_send_key_delay(0);
}
if (keycode & CNTRL) {
qemu_input_event_send_key_number(NULL, CNTRL_CODE, true);
+ qemu_input_event_send_key_delay(0);
}
if (keycode & ALT) {
qemu_input_event_send_key_number(NULL, ALT_CODE, true);
+ qemu_input_event_send_key_delay(0);
}
if (keycode & ALTGR) {
qemu_input_event_send_key_number(NULL, GREY | ALT_CODE, true);
+ qemu_input_event_send_key_delay(0);
}
qemu_input_event_send_key_number(NULL, keycode & KEY_MASK, true);
+ qemu_input_event_send_key_delay(0);
qemu_input_event_send_key_number(NULL, keycode & KEY_MASK, false);
+ qemu_input_event_send_key_delay(0);
if (keycode & ALTGR) {
qemu_input_event_send_key_number(NULL, GREY | ALT_CODE, false);
+ qemu_input_event_send_key_delay(0);
}
if (keycode & ALT) {
qemu_input_event_send_key_number(NULL, ALT_CODE, false);
+ qemu_input_event_send_key_delay(0);
}
if (keycode & CNTRL) {
qemu_input_event_send_key_number(NULL, CNTRL_CODE, false);
+ qemu_input_event_send_key_delay(0);
}
if (keycode & SHIFT) {
qemu_input_event_send_key_number(NULL, SHIFT_CODE, false);
+ qemu_input_event_send_key_delay(0);
}
} else {
keysym = curses2qemu[chr];
--
1.8.3.1
- [Qemu-devel] [PULL 0/7] input patch queue, Gerd Hoffmann, 2014/06/04
- [Qemu-devel] [PULL 5/7] docs/multiseat.txt: use autoseat, Gerd Hoffmann, 2014/06/04
- [Qemu-devel] [PULL 3/7] input/curses: add kbd delay between keydown and keyup events,
Gerd Hoffmann <=
- [Qemu-devel] [PULL 4/7] input/vnc: use kbd delays in press_key, Gerd Hoffmann, 2014/06/04
- [Qemu-devel] [PULL 2/7] input: use kbd delays for send_key monitor command, Gerd Hoffmann, 2014/06/04
- [Qemu-devel] [PULL 1/7] input: add support for kbd delays, Gerd Hoffmann, 2014/06/04
- [Qemu-devel] [PULL 6/7] docs/multiseat.txt: gtk joined the party, Gerd Hoffmann, 2014/06/04
- [Qemu-devel] [PULL 7/7] docs/multiseat.txt: add note about spice, Gerd Hoffmann, 2014/06/04
- Re: [Qemu-devel] [PULL 0/7] input patch queue, Peter Maydell, 2014/06/05