--keyboard was a flag that did nothing behind a window

Voyager installed its own input hook after machineStart, which had already
installed the keyboard file's - so naming a keyboard file and running the
window silently got the window, and the flag said nothing about being
ignored.

Both together is the combination a demo wants. Recording a flight needs
the typing that STARTS it to be the same every time, because a human
reaching the shell a moment later shifts every frame of the recording
after it - while the flying itself has to come from whatever is actually
in somebody's hands.

So the window only takes the keyboard when no file was named.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E2JrLzFvuFX9fgi1LDRjrW
This commit is contained in:
Anachronaut
2026-09-03 12:52:17 -04:00
co-authored by Claude Opus 5
parent a163c670d0
commit eb695a3f3b
2 changed files with 14 additions and 3 deletions
+14 -3
View File
@@ -487,9 +487,20 @@ int main(int argc, char *argv[]) {
screenTexture = LoadTextureFromImage(blank); screenTexture = LoadTextureFromImage(blank);
UnloadImage(blank); UnloadImage(blank);
windowOpen = 1; windowOpen = 1;
// The keyboard becomes the console's input, in place of a standard input the window // ---- The keyboard becomes the console's input ----
// does not have. //
consoleSetInputHook(voyagerKey); // In place of a standard input the window does not have. UNLESS A KEYBOARD FILE WAS
// NAMED, which used to be overridden here without a word: machineStart installs the
// file's hook and this replaced it, so --keyboard was a flag that did nothing behind
// a window and said nothing about it.
//
// Both together is the combination a demo wants. Recording a flight needs the typing
// that STARTS it to be the same every time - a human reaching the shell at a slightly
// different moment shifts every frame of the recording after it - while the flying
// itself comes from whatever is actually in somebody's hands.
if (options.keyboard == NULL) {
consoleSetInputHook(voyagerKey);
}
// ---- A slice a frame ---- // ---- A slice a frame ----
// //
// The machine gets its turn, then the window gets its turn. Closing the window stops // The machine gets its turn, then the window gets its turn. Closing the window stops
BIN
View File
Binary file not shown.