Trouble with numlock and SDL
Hi all,
I'm struggling a bit with the numlock state when using SDL.
On SDL 1.2.13 I have the problem that the numlock state is inverted for QEMU - but it is switchable.
On SDL 1.2.14 and 1.2.15 I can't enable the number input in any state of the numlock key.
With VNC everything is fine.
I read already that there were issues with these keys, and the SDL_DISABLE_LOCK_KEYS=1 environment variable didn't really help.
Any help appreciated. I'm currently testing on the RC3.
Thanks.
Best regards,
Erik
Quoted 5 lines · Erik Rull
Hi all,
I'm struggling a bit with the numlock state when using SDL.
On SDL 1.2.13 I have the problem that the numlock state is inverted for QEMU - but it is switchable.
Move focus out of sdl window -- hit numlock once -- move focus back in. Does that synchronize things?
Is this something new? IIRC there have been no (intentional) changes in that area recently.
Quoted 2 lines
On SDL 1.2.14 and 1.2.15 I can't enable the number input in any state of the numlock key.
No idea on that one. Sounds like SDL not sending numlock key events at all.
Quoted 1 line
With VNC everything is fine.
Yep. vnc has some special logic to sync guest/host numlock state (also for capslock). Maybe we should factor that out into reusable helper functions.
cheers,
Gerd
Hi Gerd,
it seems to be a bug sitting in front of the computer :-)
I just recompiled the new SDL and didn't recompile QEMU against the new SDL - I recognized later that there are version dependent pieces of code in QEMU.
I will proceed my tests on this topic on other systems, I will send an update when the results are available.
Best regards,
Erik
Quoted 30 lines · Gerd Hoffmann
Quoted 5 lines · Erik Rull
Hi all,
I'm struggling a bit with the numlock state when using SDL.
On SDL 1.2.13 I have the problem that the numlock state is inverted for QEMU - but it is switchable.Move focus out of sdl window -- hit numlock once -- move focus back in. Does that synchronize things?
Is this something new? IIRC there have been no (intentional) changes in that area recently.
Quoted 2 lines
On SDL 1.2.14 and 1.2.15 I can't enable the number input in any state of the numlock key.
No idea on that one. Sounds like SDL not sending numlock key events at all.
Quoted 1 line
With VNC everything is fine.
Yep. vnc has some special logic to sync guest/host numlock state (also for capslock). Maybe we should factor that out into reusable helper functions.
cheers,
Gerd
Hi Gerd,
well - it works "partly". When having the login screen to Windows, the numlock key works as expected e.g. in the input field of the user name. But after the login to Windows and opening Notepad, it's reversed again! :-(
Any ideas how to proceed?
Best regards,
Erik
Quoted 52 lines · Erik Rull
Hi Gerd,
it seems to be a bug sitting in front of the computer :-)
I just recompiled the new SDL and didn't recompile QEMU against the new SDL
- I recognized later that there are version dependent pieces of code in QEMU.I will proceed my tests on this topic on other systems, I will send an update when the results are available.
Best regards,
Erik
Quoted 32 lines · Gerd Hoffmann
Quoted 6 lines · Erik Rull
Hi all,
I'm struggling a bit with the numlock state when using SDL. On SDL 1.2.13 I have the problem that the numlock state is inverted for QEMU -
but it is switchable.Move focus out of sdl window -- hit numlock once -- move focus back in. Does that synchronize things?
Is this something new? IIRC there have been no (intentional) changes in that area recently.
Quoted 3 lines
On SDL 1.2.14 and 1.2.15 I can't enable the number input in any state of the
numlock key.No idea on that one. Sounds like SDL not sending numlock key events at all.
Quoted 1 line
With VNC everything is fine.
Yep. vnc has some special logic to sync guest/host numlock state (also for capslock). Maybe we should factor that out into reusable helper functions.
cheers,
Gerd
Quoted 11 lines · Erik Rull
Hi Gerd,
well - it works "partly". When having the login screen to Windows, the numlock key works as expected e.g. in the input field of the user name. But after the login to Windows and opening Notepad, it's reversed again! :-(
Any ideas how to proceed?
Quoted 3 lines
Quoted 3 lines
Yep. vnc has some special logic to sync guest/host numlock state (also for capslock). Maybe we should factor that out into reusable helper functions.
This ;)
cheers,
Gerd
Hi Gerd,
any ideas if there was an update or patch on this point? I tried to check the commits since April but didn't find something that may fit...
Best regards,
Erik
Quoted 17 lines · Gerd Hoffmann
Quoted 11 lines · Erik Rull
Hi Gerd,
well - it works "partly". When having the login screen to Windows, the numlock key works as expected e.g. in the input field of the user name. But after the login to Windows and opening Notepad, it's reversed again! :-(
Any ideas how to proceed?
Quoted 3 lines
Quoted 3 lines
Yep. vnc has some special logic to sync guest/host numlock state (also for capslock). Maybe we should factor that out into reusable helper functions.
This ;)
cheers,
Gerd
Quoted 4 lines · Erik Rull
Hi Gerd,
any ideas if there was an update or patch on this point? I tried to check the commits since April but didn't find something that may fit...
Nobody coded this up so far ...
cheers,
Gerd