jak-project/game/system/hid
Tyler Wilding 8b7e0bde53
Some checks failed
Build / 🖥️ Windows (push) Has been cancelled
Build / 🐧 Linux (push) Has been cancelled
Build / 🍎 MacOS (push) Has been cancelled
Inform Pages Repo / Generate Documentation (push) Has been cancelled
Lint / 📝 Formatting (push) Has been cancelled
Lint / 📝 Required Checks (push) Has been cancelled
Lint / 📝 Optional Checks (push) Has been cancelled
game: ensure the default game-size is also valid when initializing the pc-settings.gc file (#3624)
Also saves out the default `pc-settings.gc` file so it's less confusing
_and_ so we can request it from users to actually see what it's doing.

The fix in the last release was only to fix bad `game-size` values when
_loading_ the file. But if you don't have a file, it picks a default.

Right now it picks that default by:
1. Your largest reported resolution
2. If that fails, the one that is currently set

In reality this scenario can never really happen (if you have a set
resolution, it will be one of the reported ones). However what can
happen is for SDL to be misinformed by bad display/monitor drivers/the
OS and be given "supported" resolutions that aren't actually supported.
For example some users have a 4K resolution as their highest, despite
them using a 1080p monitor.

The solution is to not blindly assume the largest resolution is valid,
instead use the one the user already has set.

I'm also now filtering out resolutions by refresh rate, as perhaps this
also caused a problem. ie. the monitor supports a resolution if the
refresh rate is lowered, but it's currently set high (at 144hz for
example).
2024-08-03 14:57:07 -04:00
..
devices fix c++ compiler warnings, extract_merc assert (#3488) 2024-05-03 17:29:18 +01:00
display_manager.cpp game: ensure the default game-size is also valid when initializing the pc-settings.gc file (#3624) 2024-08-03 14:57:07 -04:00
display_manager.h game: cleanup some display settings related code, forbid invalid game-size resolutions (#3601) 2024-07-27 22:29:14 -04:00
input_bindings.cpp [jak3] Set up ckernel (#3308) 2024-01-16 19:24:02 -05:00
input_bindings.h game: Fix issues related to remapping with SDL axii's (ie. triggers) (#3294) 2024-01-09 16:50:58 -05:00
input_manager.cpp game: allow overriding the config directory location (#3477) 2024-04-28 15:29:20 -04:00
input_manager.h game: disable keyboard input by default, give users a way to enable it via the imgui menu (#3295) 2024-02-23 18:19:07 -05:00
sdl_util.cpp game: Improve OpenGL version detection and make requirement errors more obvious to the user (#2787) 2023-06-30 21:05:58 -04:00
sdl_util.h game: Improve OpenGL version detection and make requirement errors more obvious to the user (#2787) 2023-06-30 21:05:58 -04:00