Skip to content

Instantly share code, notes, and snippets.

@0riginaln0
0riginaln0 / input.zig
Created March 14, 2025 09:04
Input handling "library" in Zig for WASM-4
const w4 = @import("wasm4.zig");
pub const Input = struct {
previous_frame_gamepad: u8,
current_frame_gamepad: u8,
previous_frame_mouse: u8,
current_frame_mouse: u8,
previous_frame_mouse_x: i16,