Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ALT+TAB
Caterpillar Offline
Member

Posts: 116
Threads: 27
Joined: May 2010
Reputation: 0
#1
Solved: 8 Years, 9 Months, 3 Weeks ago ALT+TAB

Does exist a shortcut to open the main window of the operating system for a while?
Like ALT+TAB in Windows
09-08-2010, 12:25 PM
Find
weltall Offline
Junior Member

Posts: 5
Threads: 1
Joined: Sep 2010
Reputation: 0
#2
Solved: 8 Years, 9 Months, 3 Weeks ago RE: ALT+TAB

(09-08-2010, 12:25 PM)Caterpillar Wrote: Does exist a shortcut to open the main window of the operating system for a while?
Like ALT+TAB in Windows

run it in windowed mode with the resolution of your monitor and use your window manager full screen or no border mode
09-08-2010, 12:37 PM
Find
Urkle Offline
FG - Associate

Posts: 1,172
Threads: 31
Joined: Jul 2006
Reputation: 21
#3
Solved: 8 Years, 9 Months, 3 Weeks ago RE: ALT+TAB

not at this point no. Alt-tab is tricky with SDL applications unfortunately. If you run in windowed mode, however,when you "escape" to the menu the mouse is released so you can freely switch to other applications. AND the game goes into "suspend" mode and releases CPU cycles to other applications as well when it no longer has focus.

Developing away on one of
Multiple Macs running 10.6, 10.7, 10.8, and 10.9.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
09-09-2010, 03:41 PM
Website Find
Lasse. Offline
Junior Member

Posts: 12
Threads: 0
Joined: Sep 2010
Reputation: 0
#4
Solved: 8 Years, 9 Months, 3 Weeks ago RE: ALT+TAB

One way is to launch separate X Server for the game. This way you can change between the X server running your desktop and the one running the game easily. This can be achieved with a short script.

Guide (I use CLI-way to make it universal, no matter which desktop environment user might use and so):

First, let's make the script-file
Open up the terminal then run
nano amne
You may change amne to something else, that's our script-file's name. Also make sure your terminal's current directory is your home, if not, then
cd ~
to move there.

Then copy the following to your script-file, opened in nano
Quote:#!/bin/bash

DISPLAY=:1.0

xinit /opt/AmnesiaDemo/Amnesia.bin64 $* -- :1
You need to adjust "/opt/AmnesiaDemo/Amnesia.bin64"-part depending on where the game is installed and if you're using 32 or 64 bit version, basically just point it to your Amnesia-binary. Save the file with ctrl+x
NOTE: Using amnesia's launch-command directly DIDN'T work for me, It launched the launcher in new X Server and I couldn't use mouse there, this way it worked all good for me.

Next, let's allow the file to be run, if this is not done, you will get "permission denied" if you try to run the file.
chmod +x amne

All is set! Now you can run it via your desktop environment or via terminal
./amne
You change between the X servers with ctrl+alt+fx
x being like f7. Default X server where your desktop runs, should be F7 and new X server should be F8.
So if you want to get back to your desktop while playing, just pause the game with esc and press ctrl+alt+f7 and when you want to get back to your game, press ctrl+alt+f8.

EDIT: Also, after you quit the game, you might need to go manually back to your desktop X server with ctrl+alt+f7.

Hope this helps!
09-09-2010, 05:54 PM
Find
Caterpillar Offline
Member

Posts: 116
Threads: 27
Joined: May 2010
Reputation: 0
#5
Solved: 8 Years, 9 Months, 3 Weeks ago RE: ALT+TAB

As soon as possible I will try, thank you
09-09-2010, 09:52 PM
Find
jspenguin Offline
Junior Member

Posts: 7
Threads: 0
Joined: Sep 2010
Reputation: 0
#6
Solved: 8 Years, 9 Months, 3 Weeks ago RE: ALT+TAB

(09-09-2010, 09:52 PM)Caterpillar Wrote: As soon as possible I will try, thank you

You can also try this wrapper that I wrote specifically for SDL games like this. It allows you to press Ctrl-Shift-Z to minimize the game. Unfortunately, with Penumbra and Amnesia, the mouse still seems to be locked after minimizing (maybe they don't use SDL for mouse input?). Most other games work fine.
09-10-2010, 05:30 AM
Find
Urkle Offline
FG - Associate

Posts: 1,172
Threads: 31
Joined: Jul 2006
Reputation: 21
#7
Solved: 8 Years, 9 Months, 3 Weeks ago RE: ALT+TAB

We are using sdl for mouse input. The issue is most likely because we are grabbing the input via SDL.

Developing away on one of
Multiple Macs running 10.6, 10.7, 10.8, and 10.9.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
09-11-2010, 07:13 PM
Website Find
jspenguin Offline
Junior Member

Posts: 7
Threads: 0
Joined: Sep 2010
Reputation: 0
#8
Solved: 8 Years, 9 Months, 3 Weeks ago RE: ALT+TAB

I've fixed the wrapper so that the mouse is restored properly when the game uses SDL_WM_GrabInput. Some SDL games don't use it because it's not really necessary in fullscreen mode.
09-12-2010, 04:59 AM
Find
ced117 Offline
Member

Posts: 115
Threads: 1
Joined: Apr 2007
Reputation: 0
#9
Solved: 8 Years, 9 Months, 3 Weeks ago RE: ALT+TAB

Nice wrapper, thank you jspenguin Smile
09-12-2010, 08:58 PM
Website Find
buba Offline
Junior Member

Posts: 3
Threads: 0
Joined: May 2010
Reputation: 0
#10
Solved: 8 Years, 9 Months, 3 Weeks ago RE: ALT+TAB

jspenguin, work great! I created PKGBUILD for Arch if you don't mind.
09-21-2010, 10:50 AM
Find




Users browsing this thread: 2 Guest(s)