mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-25 16:52:29 +00:00
20 lines
350 B
C
20 lines
350 B
C
#ifndef _DRIVERS_MOUSE_H
|
|
#define _DRIVERS_MOUSE_H
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
typedef struct {
|
|
int x;
|
|
int y;
|
|
bool left_btn;
|
|
bool right_btn;
|
|
bool middle_btn;
|
|
} mouse_state_t;
|
|
|
|
void mouse_init(void);
|
|
const mouse_state_t* mouse_get_state(void);
|
|
void mouse_set_bounds(int max_x, int max_y);
|
|
|
|
#endif // _DRIVERS_MOUSE_H
|