2024-02-15 01:15:55 +00:00
|
|
|
#include "vga.h"
|
|
|
|
|
2024-02-15 13:34:50 +00:00
|
|
|
struct MouseStatus {
|
2024-02-15 01:15:55 +00:00
|
|
|
int isActive;
|
|
|
|
int buttonCount;
|
|
|
|
int xPosition;
|
|
|
|
int yPosition;
|
|
|
|
int leftButtonDown;
|
|
|
|
int rightButtonDown;
|
|
|
|
};
|
|
|
|
|
|
|
|
#define MOUSE_DRIVER_INTERRUPT (0x33)
|
|
|
|
#define MOUSE_DRIVER_RESET (0x00)
|
|
|
|
#define MOUSE_DRIVER_READ_DELTA_MOTION (0x0B)
|
|
|
|
#define MOUSE_DRIVER_READ_STATE (0x03);
|
|
|
|
|
|
|
|
int activateMouse(struct MouseStatus *);
|
2024-02-20 17:39:28 +00:00
|
|
|
int limitMouseArea(int sx, int sy, int ex, int ey);
|
2024-02-15 01:15:55 +00:00
|
|
|
void readMouse(struct MouseStatus *);
|