Author Topic: [fixed] r2711: Windows 7: Application switching (Alt-Tab) breaks shortcut keys  (Read 1115 times)

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
On windows 7, when after tabbing out and then in a game you will need to press alt-enter to enable keyboard again, you can chat if i remember correct but no shortcuts will work and the lobby chat wont work either. This issue also affects earlier revisions (but it's unclear whether it also affects v3.5.2).

MY grpaphic gard is Nvidia
« Last Edit: 3 November 2011, 06:04:49 by softcoder »
WiP Game developer.
I do danish translations.
"i break stuff"

tomreyn

  • Local Moderator
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Is anyone else able to reproduce this?
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
I am unable to reproduce this, could you re-explain each exact step and expected vs actual behaviour?

Thanks

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Just Alt-Tab, when tabbing in again short cuts are kinda disabled, fx, K wont work. il post a a little more detailed post later
WiP Game developer.
I do danish translations.
"i break stuff"

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
This bug is actually due to a bug in SDL (on windows 7 SDL is telling us that the ALT or CTRL keys are pressed when they are not). I will see what i can do to work around this.

UPDATE:

After checking around I found this: http://hg.libsdl.org/SDL/rev/090d764c56e4

So I have applied this patch to our Windows SDL win32_deps and problem solved (all windows people who compile need to download the newest win32_deps from sourceforge to get the patched SDL libs)

Link to updated 7z on sourceforge:
http://sourceforge.net/projects/megaglest/files/win32_deps.7z/download
« Last Edit: 3 November 2011, 06:04:29 by softcoder »