use the -newos toolchain even if -elf is present.
[newos.git] / apps / window_server / PS2Mouse.h
blob901bc375c523b5acfc92aeee4038ff751c9fc469
1 #ifndef _PS2_MOUSE_H
2 #define _PS2_MOUSE_H
4 const int MAIN_BUTTON = 1;
5 const int SECONDARY_BUTTON = 2;
6 const int TERTIARY_BUTTON = 4;
8 class PS2Mouse {
9 public:
11 PS2Mouse(int xmax, int ymax);
12 void GetPos(int *out_x, int *out_y, int *out_buttons);
14 private:
15 int fXPos, fYPos;
16 int fXMax, fYMax;
17 int fFd;
21 #endif