nx_input_abstract.nx
buildroot/runtime/nx_input_abstract.nx
about
dependencies 2 imports · 34 importers
diagram shows first 10 each side; +0 more imports, +24 more importers in the complete lists below.
imports: nx_syscalls.nxnx_game_touch.nx
imported by: nx_craft_before_placement_t316.nxnx_desktop_game.nxnx_input_abstract_gate.nxnx_input_alias_regression_t121.nxnx_movement_base_engine_t139.nxnx_wasm_breeders.nxnx_wasm_craft.nxnx_wasm_craft_body_t137.nxnx_wasm_craft_contact_candidate.nxnx_wasm_craft_dunes_t70.nxnx_wasm_craft_gait_candidate.nxnx_wasm_craft_gait_candidate_t139.nxnx_wasm_craft_imported_body_t41.nxnx_wasm_craft_imported_body_t42.nxnx_wasm_craft_imported_body_t49.nxnx_wasm_craft_imported_t262.nxnx_wasm_craft_inspection_bounds_t181.nxnx_wasm_craft_inspection_distance_t218.nxnx_wasm_craft_inspection_t142.nxnx_wasm_craft_journal_index_t21.nxnx_wasm_craft_journal_index_t21_before_t44.nxnx_wasm_craft_lookup_candidate.nxnx_wasm_craft_move_t72.nxnx_wasm_craft_pre_inspection_t142.nxnx_wasm_craft_recovery_t20.nxnx_wasm_craft_relief_adopt_t143.nxnx_wasm_craft_relief_save_t143.nxnx_wasm_craft_relief_t143.nxnx_wasm_craft_residency_t44.nxnx_wasm_craft_turn_candidate_t139.nxnx_wasm_craft_visitors_canonical_t142.nxnx_wasm_craft_visitors_inspection_t142.nxnx_wasm_craft_visitors_t140.nxnx_wire_diablo2_gate.nx
structs
| none |
consts
| 23 | const IA_UP: i64 = 1 |
| 24 | const IA_DOWN: i64 = 2 |
| 25 | const IA_LEFT: i64 = 4 |
| 26 | const IA_RIGHT: i64 = 8 |
| 27 | const IA_A: i64 = 16 |
| 28 | const IA_B: i64 = 32 |
| 29 | const IA_MENU: i64 = 64 |
| 30 | const IA_PAUSE: i64 = 128 |
| 31 | const IA_JUMP: i64 = 256 |
| 32 | const IA_LUP: i64 = 512 // look up (keyboard pitch fallback) |
| 33 | const IA_LDOWN: i64 = 1024 // look down |
| 34 | const IA_MOD: i64 = 2048 // spare modifier |
| 35 | const IA_HOME: i64 = 4096 // return-to-spawn (void-fall rescue) |
| 38 | const IA_KB: i64 = 0 // keyboard-held action mask |
| 39 | const IA_PAD: i64 = 1 // gamepad-button-held action mask |
| 40 | const IA_AX: i64 = 2 // gamepad-axis-derived action mask (hysteresis state) |
| 41 | const IA_TOUCH: i64 = 3 // touch-held action mask |
| 42 | const IA_PREV: i64 = 4 // union mask latched by the previous ia_frame (edge detector) |
| 43 | const IA_AXX: i64 = 5 // last raw x axis, milli (-1000..1000) |
| 44 | const IA_AXY: i64 = 6 // last raw y axis, milli (+ = down, browser gamepad convention) |
| 45 | const IA_NBIND: i64 = 7 // live binding rows |
| 46 | const IA_BROW0: i64 = 8 // rows begin: (code, action) pairs |
| 47 | const IA_MAXBIND: i64 = 24 |
| 48 | const IA_LOOKX: i64 = 56 // analog LOOK channel: accumulated relative deltas (mouse/touch-drag), |
| 49 | const IA_LOOKY: i64 = 57 // drained once per frame by ia_look_take -- actions are bits, look is motion |
| 50 | const IA_KEYROWS: i64 = 58 // physical keyboard holds by binding row; uses reserved arena slack |
| 51 | const IA_LOOK_CLAMP: i64 = 30000 |
| 52 | const IA_WORDS: i64 = 64 // 8 + 2*24 = 56 bind area, +2 look, rounded up for slack |
| 55 | const IA_TH_PRESS: i64 = 350 |
| 56 | const IA_TH_HOLD: i64 = 250 |
functions
| 58 | func ia_words() -> i64 { return IA_WORDS } called by 1: main |
| 61 | func ia_lookup(p: *i64, code: i64) -> i64 called by 1: ia_touch |
| 72 | func ia_keyboard_union(p: *i64) -> i64 |
| 84 | func ia_bind(p: *i64, code: i64, act: i64) -> i64 |
| 110 | func ia_init(p: *i64) -> i64 |
| 130 | func ia_key(p: *i64, code: i64, down: i64) -> i64 |
| 148 | func ia_pad_decode(btn: i64) -> i64 called by 1: ia_pad |
| 160 | func ia_pad(p: *i64, btn: i64, down: i64) -> i64 |
| 169 | func ia_ax1(active: i64, v: i64) -> i64 called by 1: ia_axis |
| 177 | func ia_axis(p: *i64, idx: i64, milli: i64) -> i64 |
| 192 | func ia_touch(p: *i64, tx: i64, ty: i64, w: i64, h: i64, down: i64) -> i64 |
| 200 | func ia_held(p: *i64) -> i64 |
| 206 | func ia_frame(p: *i64) -> i64 |
| 215 | func ia_look(p: *i64, dx: i64, dy: i64) -> i64 |
| 229 | func ia_look_take(p: *i64, out: *i64) -> i64 called by 1: main |