code wiki / _hdl_build / nx_game_touch_gate.nx

nx_game_touch_gate.nx

buildroot/runtime/_hdl_build/nx_game_touch_gate.nx

4730 B81 linesdepth 3pulls 4 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 3 imports · 0 importers

nx_syscalls.nx nx_game_touch.nx nx_gate_verdict.nx nx_game_touch_gate.nx

imports: nx_syscalls.nxnx_game_touch.nxnx_gate_verdict.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 nxa_die sys_write ↻ sys_exit ↻ nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_read sys_close tg_contains tgn sys_write ↻ sys_mmap ↻ gv_ctr sys_mmap ↻ gv_verdict gv_note_bare_rate gv_bare_rate gv_at gv_obj_has_n gv_at ↻ gv_puts sys_write ↻ gv_num sys_mmap ↻

structs

none

consts

none

functions

10func 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
11func tgn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
21func tg_contains(hay: *u8, haylen: i64, needle: *u8) -> i64
called by 1: main
39func main() -> i64