axle OS
x86_32 UNIX-like hobby OS
src
kernel
drivers
mouse
mouse.h
1
#ifndef MOUSE_H
2
#define MOUSE_H
3
4
#include <gfx/lib/shapes.h>
5
6
//install mouse driver
7
void
mouse_install();
8
9
//return current mouse coordinates, bounded by VESA 0x118 resolution
10
Point
mouse_point();
11
12
//returns current button states in bitmask
13
//0th bit is left button state
14
//1st bit is right button state
15
//2nd bit is middle button state
16
uint8_t mouse_events();
17
18
//blocks running task until mouse event is recieved
19
void
mouse_event_wait();
20
21
#endif
coordinate
Definition:
point.h:4
Generated by
1.8.14