Windows keyboard shortcuts in full-screen game?

Questions about Wine on macOS.
Locked
guspasho
Newbie
Newbie
Posts: 1
Joined: Mon Aug 27, 2012 6:07 pm

Windows keyboard shortcuts in full-screen game?

Post by guspasho »

Hi. I use Wine to play Civilization 4 for Windows on Mac because the Windows version has better mod support and I like using a Mac. A generous fan put together instructions how to set it up here and it runs great. But I still have a few problems.

I like to play in fullscreen mode, but the minimize and print screen keyboard shortcuts do not work. Alt-tab does not minimize the game and I have to fully quit the game every time I want to switch to another program. And my keyboard doesn't have a Print Screen key, nor does the Mac Shift-Command-3 shortcut work. So does anyone know how I might enable keyboard shortcuts for these functions? Thanks!

Also, as a two-fer, I'd like to set up more than one icon to launch another executable (Civ 4 has different executables for different expansions) and to launch the executable with different switches (to launch directly in to a mod.) Currently, the only way I see of doing that is to copy the entire installation, and that's about 5GB so that won't work for me. Anyone know how I can have multiple launch icons with different executable strings but using only one game installation? Thanks again!
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Re: Windows keyboard shortcuts in full-screen game?

Post by doh123 »

When XQuartz (X11) goes into fullscreen mode, it captures the display for its own use. This is a tool built into OSX for fullscreen programs so they don't affect other things, and any Multitasking has to be built in...

The are only a couple of keystrokes that have been enabled in a captured fullscreen for XQuartz. Cmd+Opt+ESC to kill the app if its messed up, and Cmd+Opt+A which knocks it out of fullscreen altogether. The problem with this is... there is no way to get back in fullscreen without going into the game and making changes so it calls a resolution change again, which doesn't work for all games. Or you can open an Xterm and use xrandr command line to change the res back.

I added in WineskinX11 (X11 built into Wineskin) so that Cmd+Opt+A works as a toggle so you can get back to fullscreen, but there is some bug in 10.8 that causes it to crash going back into fullscreen... but still works ok on 10.6 and 10.7.

I've just been speaking with the XQuartz maintainer about that 10.8 crash issue, and also suggesting that he add in Cmd+Opt+A does a toggle in XQuartz as well. If that makes it in and works, it will help a ton with multitasking in fullscreen XQuartz.
Locked