Open the menu for everyone: F1, Esc and Minus+Plus toggle it, the combo never reaches the game, the page offers Continue and Quit game, and closing after Esc gives the mouse capture back

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Valiantsin DzerakhandClaude Opus 5.5 committed 2026-10-26 09:49:15 +03:00
1 parent 81af84d327
commit 0cfc489bbf
8 files changed
+94 -41

No files matched your search

+2
View File
@@ -7,6 +7,7 @@
#include "gfx.h"
#include "input.h"
#include "ui/menu.h"
#include "vk.h"
#define SRC_W 640
@@ -162,6 +163,7 @@ int probe_window(void) {
SendMessageW(hw, WM_ACTIVATEAPP, FALSE, 0);
SendMessageW(hw, WM_ACTIVATEAPP, TRUE, 0);
int back = input_cursor_released();
if (menu_is_open()) menu_toggle(); // Esc opened the menu: the presents below compare the bare game image
if (!esc || click || client || !caption || back) {
printf("probe-window: released esc=%d click=%d client=%d caption=%d reactivated=%d\n", esc, click, client, caption, back);
return fail("cursor release");