Skip to main content

Module sys

Module sys 

Source
Expand description

Raw ABI. On wasm32 these are the real imports (see spec/ABI.md). On other targets they are backed by crate::native, an in-process stub host used for native parity tests and benchmarks.

GENERATED from spec/abi.json by scripts/gen-abi.mjs. Do not edit by hand.

Re-exports§

pub use crate::native::abi::*;

Modules§

keys
Physical keys (W3C KeyboardEvent.code names; layout-independent). The third column is the W3C name.

Constants§

GASM_BTN_A
Virtual gamepad buttons (bit positions). Face buttons by position: East=A, South=B, North=X, West=Y.
GASM_BTN_B
GASM_BTN_DOWN
GASM_BTN_L
GASM_BTN_LEFT
GASM_BTN_R
GASM_BTN_RIGHT
GASM_BTN_SELECT
GASM_BTN_START
GASM_BTN_UP
GASM_BTN_X
GASM_BTN_Y
GASM_BUF_COPY_DST
GASM_BUF_INDEX
GASM_BUF_STORAGE
GASM_BUF_UNIFORM
GASM_BUF_VERTEX
GASM_FETCH_DONE
GASM_FETCH_FAILED
GASM_FETCH_HEADERS
GASM_FETCH_PENDING
GASM_FILES_FAILED
GASM_FILES_PENDING
gasm_files_state results.
GASM_FILES_SAVED
GASM_GAMEPAD_AXES
GASM_GAMEPAD_BUTTONS
GASM_GAMEPAD_BYTES
gamepad() layout: little-endian fields at the GASM_GAMEPAD_OFF_* byte offsets: u32 flags, u32 button count, u32 axis count, f32 button values (32), f32 axis values (16). Standard mapping (W3C): buttons 0 south, 1 east, 2 west, 3 north, 4/5 shoulders, 6/7 triggers, 8 select, 9 start, 10/11 stick clicks, 12-15 d-pad up/down/left/right, 16 home; axes 0/1 left stick x/y, 2/3 right stick x/y (y > 0 = down).
GASM_GAMEPAD_CONNECTED
GASM_GAMEPAD_OFF_AXES
GASM_GAMEPAD_OFF_AXIS_COUNT
GASM_GAMEPAD_OFF_BUTTONS
GASM_GAMEPAD_OFF_BUTTON_COUNT
GASM_GAMEPAD_OFF_FLAGS
GASM_GAMEPAD_STANDARD
GASM_INDEX_U16
GASM_INDEX_U32
GASM_INPUT_KEYS_RAW
input_mode flags.
GASM_INPUT_POINTER_HIDDEN
GASM_INPUT_POINTER_LOCKED
GASM_KEY_EVENT_BYTES
GASM_KEY_STATE_BYTES
key_state() size, and the size of one key_events() record.
GASM_MEDIA_CAN_LOWPASS
GASM_MEDIA_CAN_METADATA
GASM_MEDIA_CAN_VOLUME
GASM_MEDIA_CONNECTING
GASM_MEDIA_ENDED
GASM_MEDIA_FAILED
GASM_MEDIA_PAUSED
GASM_MEDIA_PLAYING
GASM_MOUSE_BACK
GASM_MOUSE_FORWARD
GASM_MOUSE_LEFT
GASM_MOUSE_MIDDLE
GASM_MOUSE_RIGHT
GASM_NET_CLOSED
GASM_NET_CONNECTING
GASM_NET_ERROR
GASM_NET_OPEN
GASM_POINTER_BYTES
pointer() layout and bits: little-endian fields at the GASM_POINTER_OFF_* byte offsets: f32 x, y (drawable px), fx, fy (frame px), dx, dy (relative motion), wheel_x, wheel_y (lines; y > 0 = down), u32 buttons, pressed, released, flags.
GASM_POINTER_INSIDE
GASM_POINTER_IS_HIDDEN
GASM_POINTER_IS_LOCKED
GASM_POINTER_OFF_BUTTONS
GASM_POINTER_OFF_DX
GASM_POINTER_OFF_DY
GASM_POINTER_OFF_FLAGS
GASM_POINTER_OFF_FX
GASM_POINTER_OFF_FY
GASM_POINTER_OFF_PRESSED
GASM_POINTER_OFF_RELEASED
GASM_POINTER_OFF_WHEEL_X
GASM_POINTER_OFF_WHEEL_Y
GASM_POINTER_OFF_X
GASM_POINTER_OFF_Y
GASM_STAGE_FRAGMENT
GASM_STAGE_VERTEX
Bind group layout entry visibility (WebGPU GPUShaderStage bits).
GASM_STORAGE_ERR_IO
GASM_STORAGE_ERR_KEY
GASM_STORAGE_ERR_QUOTA
GASM_STORAGE_ERR_SIZE
GASM_STORAGE_OK
gasm_storage_set results.
IMPORTS
Every import module and module.function of this ABI version (what gasm::has can report).