adtools / os4sdl

Automatically exported from code.google.com/p/os4sdl
GNU Lesser General Public License v2.1
2 stars 2 forks source link

Alt- Hotkey not freed #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Any SDL program/game which features Alt-Enter for switching between fullscreen 
and windowed mode (example ScummVM)

What steps will reproduce the problem?
1. When in Fullscreen Mode, press Alt-Enter to get in Windowed mode
2. Now in Windowed mode type anything in any field
3. Press Enter (note, that you have long let go of the Alt button)
4. The program/game will NOT take the Enter as command to finish the typing, 
instead it will bring bring the program/game back into Fullscreen mode as if 
the Alt key is still set to be pressed (not released by the internals of SDL?)

What version of the product are you using? On what operating system?
AmigaOS4.1 update 2
SDL 1.2.13r37

Please provide any additional information below.

I know this behaviour from long ago and am not sure if it actually is a bug in 
SDL or maybe in OS4...

Original issue reported on code.google.com by raziel_n...@web.de on 18 Sep 2010 at 7:17

GoogleCodeExporter commented 9 years ago
There is a workaround for this behaviour which may show the devs a little hint

I need to press ALT a second time to be able to work along normal.
So it seems the ALT is still held somewhere, instead of freed when the key was 
released.

Not sure if it helps, but afaik DOSBox is SDL aswell and has the same 
functionality of switching FS/Window with Alt-Enter, but the behaviour 
described above doesn't happen there

Original comment by raziel_n...@web.de on 18 Sep 2010 at 9:25

raziel- commented 6 years ago

This beahviour is still there and it's related (if not the same) to bug [url=https://sourceforge.net/p/sdl2-amigaos4/tickets/38/]#38[/url] on SDL2