code wiki / _hdl_build / nx_game_touch_gate.nx
nx_game_touch_gate.nx
buildroot/runtime/_hdl_build/nx_game_touch_gate.nx
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
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
structs
| none |
consts
| none |
functions
| 9 | func tg(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 10 | func tgn(v: i64) -> i64 |
| 20 | func tg_contains(hay: *u8, haylen: i64, needle: *u8) -> i64 called by 1: main |
| 38 | func main() -> i64 |