Giter Club home page Giter Club logo

Comments (3)

Andrettin avatar Andrettin commented on August 19, 2024

The full screen can be toggled with Ctrl+F or Alt+F (previously only on within scenarios, but I now uploaded a commit that allows doing that in the menu too).

Alt+Tab should work for tabbing out of Wyrmsun (it does under Windows at least). Maybe the fact that it is not working for you is related to the keyboard layout incompatibility issue?

from wyrmgus.

akien-mga avatar akien-mga commented on August 19, 2024

Thanks, both Ctrl+F and Alt+F seem to work to toggle the fullscreen mode, so that gives me a good workaround. Maybe the radio button should also be added to the in-game menu (currently only the resolution can be changed from within a scenario).

Regarding the Alt+Tab issue, I don't think that it's related to the keyboard layout, it is most likely related to the window management/focus-grabbing, etc.. I have the issue both with the SDL and OpenGL renderers btw.

from wyrmgus.

Szunti avatar Szunti commented on August 19, 2024

SDL1 in fullscreen mode eats all input on linux. You can't switch window, change volume, etc. AFAIK it is a design issue. It is fixed only in SDL2.

The problem is that SDL1 input grabbing on X11 has two flaws:

  1. Can only grab both keyboard and mouse input.
    This cause that if Mouse Grabbing in the options menu is enabled (which is a must to play in windowed mode) you can't alt-tab, beacuse the window manager doesn't get the key input.
  2. In fullscreen mode, where mouse grabbing is not necessary, input grabs can't be disabled.

For desktop resolution there is a solution:
use a fullscreen sized window without decoration, and disable input grabbing.

For this the resolution changer UI would be nicer with a layout similar to this:
x Desktop size
o Other: width-list height-list [ ] Fullscreen

from wyrmgus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.