Stop grabbing my keyboard :(
To all game developers, porters and everyone else,
please stop grabbing my keyboard, as it get's me very frustrated.
The other day I was playing World of Goo and found out I couldn't change the sound volume with my keyboard, so I tried to alt+tab, but guess what..
The game grabs the whole keyboard, I had to go to windowed mode to do anything. I got angry and kept wondering why the hell a game that only uses the mouse has to grab my keyboard.
But that isn't the only game, I found out almost every game on linux grabs the whole input.
How come? no idea, please tell me.
I know of etswitch, but that doesn't work for every game (like warsow).
So I fixed it myself http://www.warsow.net/forum/viewtopic.php?id=20771
Now I'm planning to do a few other games too (I'm not a good programmer,
but I learn fast).
So if anyone has a favorite game to fix, I might do that one next.
Because I think this is one of the things that keeps the windows users from using (playing games on) linux.
eduke32 does this too. It's a huge pain.
That's really annoying even when you play caster3d, when you use wine then it works...
Wow do I know what you mean...
Fortunately HoN got it right, even though everything is horribly slow when you alt+tab out.
AFAIK this is some limitation in SDL (I seem to remember Svartalf saying something like that). I'm no expert though...
I don't think sdl grabs all the imput all the time.
But others games not using sdl do the same.
Anyway, as I said, this is one of the things that keep people from using linux.
Because in windows it's a common thing to alt+tab out of a game.
A lot of gamers use irc while gaming, are on teamspeak (push button to talk) and want to quickly alt+tab out of the game to look up soem console command.
All these things can't be done when an application grabs the keyboard (mouse), you can't even change the volume of your system because of the grab.
So we definitely need to do something about this.
I'll be doing some other games too, but I'm a little busy atm.
In what kind of dream world are you living? In windows it's one of the main problems that you can't alt-tab out of a game. Either you can't get out of it or once you do you can't get safely back into it. Under Linux this is a lot less of a problem. If I want to I can totally override a hotkey of an application in Linux which I can't in windows.
Originally Posted by blablabla
Huh? I alt-tab all the time out of games in windows to read walk-thru (yes I get stuck in games and cheat occasionally.).
Originally Posted by Dragonlord
Windows games use most of the time DirectX for input processing which bypasses the windows input processing. As a result the games can totally block you from getting out of them or get in trouble if you manage to escape them. Under Linux input goes through X and you do not bypass the input ( if the game is written in a sane way ). You can avoid DX for input processing on Windows which puts you up on the same level as Linux doing proper input handling. Besides there is no sane reason to try to bypass X input in Linux to do a game.
Originally Posted by deanjo
Still doesn't change the fact that the very few ever do and the "real world" that you are presenting is more of a case of "bizzaro world". It's been quite literally years since I have had a game in windows lock out alt-tab and if they do exist they usually issue a patch to fix it so that you can.
Originally Posted by Dragonlord
Please developers, don't grab our keyboard when playing fullscreen games on Linux.
Big thanks at this point to S2Games, which seems to handle alt+tab quite nicely in there games!