ludic/selfhost/backend
Orkuncakilkaya 4979cc0c94 feat: every key on the keyboard is bindable - the F-row, the six-pack, Caps Lock and the numpad
The platform gave these keys no code at all, so a game's rebinding screen could not take
one and nothing said why. Windows asked the active layout what they type and got nothing
(w_vk_char answers 0 for a key with no character); macOS let them fall through to
charactersIgnoringModifiers, which reports NSF1FunctionKey and its neighbours at 0xF704
and up - outside the 256-bit held set either way.

w_keyval and ev_keyval now name them, with the same codes on both: 132-143 F1-F12,
144-149 Home / End / PageUp / PageDown / Insert / Delete, 150 Caps Lock, 152-161 the
numpad digits, 162-166 its * + - . and /. The numpad's Enter is Enter.

Key.F1, Key.Home, Key.Numpad0 and the rest fold at compile time, and Input.key_label
names them without asking the layout - a key that types nothing is called the same thing
on every layout.

examples/library/input_typeless_keys.ludic covers the codes, the names, the held set and
the press edge; 150 passed in ludic-dev test, 33 in selfhost-test.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-18 00:57:02 +03:00
..
game feat(lang): float and double types with ordinary operators 2026-09-16 16:13:31 +03:00
stdlib feat: every key on the keyboard is bindable - the F-row, the six-pack, Caps Lock and the numpad 2026-09-18 00:57:02 +03:00
emit_addr.ludic feat(lang): float and double types with ordinary operators 2026-09-16 16:13:31 +03:00
emit_call.ludic feat(launcher): Process.*, Http.save_to/received/expected, App.window_hide/show 2026-09-17 13:32:23 +03:00
emit_core.ludic feat(lang): float and double types with ordinary operators 2026-09-16 16:13:31 +03:00
emit_decl.ludic feat(lang): float and double types with ordinary operators 2026-09-16 16:13:31 +03:00
emit_expr.ludic fix(compiler): == / != on references is identity; only text compares by content 2026-09-16 16:13:31 +03:00
emit_float.ludic feat(lang): float and double types with ordinary operators 2026-09-16 16:13:31 +03:00
emit_head.ludic fix: CSPRNG on Windows, and a window's first title is the package's app name 2026-09-17 16:22:05 +03:00
emit_intrin.ludic feat(windows): a Windows target for ludicc, and the compiler builds itself there 2026-09-13 01:59:41 +03:00
emit_intrin2.ludic fix(input): keys are physical positions on every layout; Input.key_label names them 2026-09-15 23:26:53 +03:00
emit_mem.ludic refactor(selfhost): reorganise into concern-based subdirectories 2026-08-31 00:26:02 +03:00
emit_new.ludic feat(lang): float and double types with ordinary operators 2026-09-16 16:13:31 +03:00
emit_stmt.ludic feat(lang): float and double types with ordinary operators 2026-09-16 16:13:31 +03:00