18 lines
259 B
C
18 lines
259 B
C
#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);
|