qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Controlling SDL2 output with Ctrl+Alt+*


From: Cole Robinson
Subject: Re: [Qemu-devel] Controlling SDL2 output with Ctrl+Alt+*
Date: Mon, 21 Apr 2014 18:14:49 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0

On 04/18/2014 02:28 PM, Michael Tokarev wrote:
> SDL2 display apparently does not work with standard keyboard
> shortcuts documented in the qemu manpage.  In particular,
> Ctrl+Alt+(123) does not switch between monitor, serial and
> guest graphical conslole,

Certainly seems intentional: notice the lack of qemu_console_is_graphic checks
in sdl2.c compared to sdl.c. My guess is Dave just ripped it all out since it
was tangential to the original goal of facilitating some virtio graphics magic.

But the side effect is that sdl2.c isn't a suitable replacement for sdl.c
quite yet :/

Ctrl+Alt+[-+] does not grow/shrink
> guest window and so on.

There was some attempt to wire this up, sdl2.c:487. If I do
s/SDL_SCANCODE_KP/SDL_SCANCODE/g it will make the keyboard shortcuts actually
trigger the zoom code, but it still doesn't seem to work.

(In fact, sdl.c doesn't work for me either: it expects:

        case 0x1b: /* '+' */
        case 0x35: /* '-' */

But for me, '-' is 0xC and '+' is 0xD...

- Cole



reply via email to

[Prev in Thread] Current Thread [Next in Thread]