mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-19 19:29:57 -04:00
Follow the gamepad the player presses and show the project's name.
Every connected gamepad is kept open and rescanned each second, and the game reads the one pressed last: taking only the first one SDL listed left the game deaf when that was a virtual or idle device. SDL may deliver gamepad presses in the background, since it cannot see the Win32 window's focus; the keyboard stays gated on it. The log notes each gamepad's first press. The version line, the window title and the Discord status say the project's name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -317,7 +317,7 @@ static void window_main(void *arg) {
|
||||
// button flashes, and NX2NAVI_FULLSCREEN waits for the first activation.
|
||||
// NX2NAVI_BACKGROUND_WINDOW=1 (test runs): no flashing, never fullscreen at start, and F11 keeps the window's place.
|
||||
int background = g_background = cfg_get("NX2NAVI_BACKGROUND_WINDOW") && atoi(cfg_get("NX2NAVI_BACKGROUND_WINDOW"));
|
||||
g_hwnd = CreateWindowExW(0, wc.lpszClassName, L"NX2navi", WND_STYLE, CW_USEDEFAULT, CW_USEDEFAULT, ow, oh, NULL,
|
||||
g_hwnd = CreateWindowExW(0, wc.lpszClassName, L"Ocarina Recomp", WND_STYLE, CW_USEDEFAULT, CW_USEDEFAULT, ow, oh, NULL,
|
||||
NULL, inst, NULL);
|
||||
if (!g_hwnd) {
|
||||
rt_log("gfx: CreateWindowEx failed (%lu)", GetLastError());
|
||||
|
||||
Reference in New Issue
Block a user