code wiki / _hdl_build / nx_game_touch_gate.nx

nx_game_touch_gate.nx

buildroot/runtime/_hdl_build/nx_game_touch_gate.nx

4343 B73 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic game
docsdependenciesstructsconstsfunctions

about

nx_game_touch_gate.nx -- proves mobile game touch input, NO fake green. PART A: the sovereign zone brain (nx_touch_zone) maps the 5 canonical zones to the right keyCodes + neg-controls (left is never RIGHT; an invalid canvas yields no key). PART B: the game-page BUILDER (web_assets/_game_build/game_page.tpl.html) actually CARRIES the touch wiring (touchstart/touchmove/touchend forwarding to gi_key + touch-action css) -- read from disk, with a neg-control so the contains-check has teeth. expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_game_touch.nx nx_game_touch_gate.nx

imports: nx_syscalls.nxnx_game_touch.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main tg sys_write nx_touch_zone tz_third sys_openat_rd sys_exit sys_mmap sys_read sys_close tg_contains tgn sys_write ↻ sys_mmap ↻

structs

none

consts

none

functions

9func tg(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
10func tgn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
20func tg_contains(hay: *u8, haylen: i64, needle: *u8) -> i64
called by 1: main
38func main() -> i64