finix/kernel/include/drivers/ps2mouse.h

19 lines
259 B
C
Raw Permalink Normal View History

2023-07-16 06:54:32 +00:00
#pragma once
#include <stdbool.h>
#include <stdint.h>
struct MouseEvent {
bool updated;
bool lmb;
bool rmb;
bool mmb;
int relx;
int rely;
};
void ps2mouse_init(void);
void ps2mouse_recv(void);
struct MouseEvent ps2mouse_get(void);