mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-21 12:55:57 +00:00
Add a Steam Deck profile and keep the picture's proportions on screens of another shape.
The present fits the game's picture into the largest centred rectangle of its own aspect ratio and clears the rest to black (gfx_fit_rect, through both the blit and FSR), so a 16:9 game on the Deck's 16:10 screen is no longer stretched; picture_fit = stretch keeps the old fill. probe-window checks the bars as well as the picture. device_profile = auto|desktop|deck: on a Steam Deck (the firmware's Valve Jupiter or Galileo board, or SteamDeck=1) the keys totk.ini does not set default to fullscreen, a 1280x800 window, a 1280x720 game resolution, the game's own scene scale, vsync and a 40 fps limit; the environment and totk.ini still win. These are starting points until measured on the device (docs/tester-guide.md, Steam Deck). Both stick clicks (L3 + R3) step the performance overlay as F10 does, for a controller with no keyboard. The menu offers 1280x720 and 1600x900 game resolutions and 40, 45 and 90 fps limits.
This commit is contained in:
1 parent
29a14d69fe
commit
2f78585b4c
15 files changed
+200
-35
No files matched your search
@@ -17,6 +17,7 @@ void input_menu(int open);
|
||||
// Minus+Plus combo and the neutral pad while the menu is open (input_map.c, window-system free): *held is the caller's memory
|
||||
// of the combo, sticks are lx, ly, rx, ry. Returns 1 in the poll where the combo goes down (toggle the menu once).
|
||||
int input_menu_gate(int *held, int menu_open, uint64_t *buttons, int32_t sticks[4]);
|
||||
int input_overlay_gate(int *held, uint64_t *buttons); // L3+R3: 1 in the poll both go down
|
||||
int input_pad_read(uint64_t *buttons, int32_t *lx, int32_t *ly);
|
||||
// The gamepad layout in effect (PAD_LAYOUT_*, input_map.h; TOTK_PAD_LAYOUT, live); -1 without a gamepad. Any thread.
|
||||
int input_pad_layout(void);
|
||||
|
||||
Reference in new issue
Block a user