repo.or.cz
/
newos.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
use the -newos toolchain even if -elf is present.
[newos.git]
/
apps
/
window_server
/
PS2Mouse.h
blob
901bc375c523b5acfc92aeee4038ff751c9fc469
1
#ifndef _PS2_MOUSE_H
2
#define _PS2_MOUSE_H
3
4
const int
MAIN_BUTTON
=
1
;
5
const int
SECONDARY_BUTTON
=
2
;
6
const int
TERTIARY_BUTTON
=
4
;
7
8
class
PS2Mouse
{
9
public
:
10
11
PS2Mouse
(
int
xmax
,
int
ymax
);
12
void
GetPos
(
int
*
out_x
,
int
*
out_y
,
int
*
out_buttons
);
13
14
private
:
15
int
fXPos
,
fYPos
;
16
int
fXMax
,
fYMax
;
17
int
fFd
;
18
};
19
20
21
#endif