TempleOS - 5-Minute Random Code Walk-Thru #94 (r0nqOxneh8Y)
TempleOS - 5-Minute Random Code Walk-Thru #94 (00:06:08)
January 4, 2015
Explains TempleOS keyboard input internals by contrasting `GetKey` and `GetChar`, including how ASCII values and scan codes are stored and interpreted. Details E0-prefixed cursor-key handling, modifier and lock flag bits, and the distinction between key events and broader input messages such as mouse movement and button actions. Walks through `ScanKey` and `ScanChar` behavior for queue purging, blocking vs immediate return, and nonzero-ASCII filtering.
Copyright © 2023 - 2026 Serhii Zasenko. All rights reserved