qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] sdl2: drop qemu_input_event_send_key_qcode call
@ 2019-02-08  7:27 Gerd Hoffmann
  2019-02-08 12:41 ` BALATON Zoltan
  0 siblings, 1 reply; 2+ messages in thread
From: Gerd Hoffmann @ 2019-02-08  7:27 UTC (permalink / raw)
  To: qemu-devel; +Cc: Gerd Hoffmann, balaton

qkbd_state_key_event() does that for us.

Fixes: 07333e1ca3 kbd-state: use state tracker for sdl2
Reported-by: BALATON Zoltan <balaton@eik.bme.hu>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 ui/sdl2-input.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/ui/sdl2-input.c b/ui/sdl2-input.c
index 664364a5e5..fb345f45fb 100644
--- a/ui/sdl2-input.c
+++ b/ui/sdl2-input.c
@@ -54,8 +54,5 @@ void sdl2_process_key(struct sdl2_console *scon,
                 break;
             }
         }
-    } else {
-        qemu_input_event_send_key_qcode(con, qcode,
-                                        ev->type == SDL_KEYDOWN);
     }
 }
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] sdl2: drop qemu_input_event_send_key_qcode call
  2019-02-08  7:27 [Qemu-devel] [PATCH] sdl2: drop qemu_input_event_send_key_qcode call Gerd Hoffmann
@ 2019-02-08 12:41 ` BALATON Zoltan
  0 siblings, 0 replies; 2+ messages in thread
From: BALATON Zoltan @ 2019-02-08 12:41 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel

On Fri, 8 Feb 2019, Gerd Hoffmann wrote:
> qkbd_state_key_event() does that for us.
>
> Fixes: 07333e1ca3 kbd-state: use state tracker for sdl2
> Reported-by: BALATON Zoltan <balaton@eik.bme.hu>
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>

Fixes my problem.

Tested-by: BALATON Zoltan <balaton@eik.bme.hu>

Thank you,
BALATON Zoltan

> ---
> ui/sdl2-input.c | 3 ---
> 1 file changed, 3 deletions(-)
>
> diff --git a/ui/sdl2-input.c b/ui/sdl2-input.c
> index 664364a5e5..fb345f45fb 100644
> --- a/ui/sdl2-input.c
> +++ b/ui/sdl2-input.c
> @@ -54,8 +54,5 @@ void sdl2_process_key(struct sdl2_console *scon,
>                 break;
>             }
>         }
> -    } else {
> -        qemu_input_event_send_key_qcode(con, qcode,
> -                                        ev->type == SDL_KEYDOWN);
>     }
> }
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-02-08 12:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-08  7:27 [Qemu-devel] [PATCH] sdl2: drop qemu_input_event_send_key_qcode call Gerd Hoffmann
2019-02-08 12:41 ` BALATON Zoltan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).