Fumofumotris/libs/minimal_input_interface.zig
Julia 49b7a9f7ed Wasapi adapter
Rewriting a lot
2024-10-25 13:49:43 -05:00

23 lines
381 B
Zig

const std = @import("std");
pub const Joystick = struct {
x: i32,
y: i32,
};
pub const Keyboard = struct {
state: u128 = 0,
last_pressed: [128]u32 = std.mem.zeroes(),
last_released: [128]u32 = std.mem.zeroes(),
};
pub const Mouse = struct {
pos: Joystick,
wheel: Joystick,
};
pub const Client = struct {
keyboard: Keyboard,
mouse: Mouse,
};