PCem
view src/allegro-mouse.c @ 154:d0d530adce12
Initial port to Linux (using Allegro).
64-bit fixes.
Some changes to aid portability.
A few other tweaks.
| author | TomW |
|---|---|
| date | Thu Sep 04 21:07:24 2014 +0100 |
| parents | |
| children |
line source
1 #include "allegro-main.h"
2 #include "plat-mouse.h"
4 int mouse_buttons;
6 void mouse_init()
7 {
8 install_mouse();
9 }
11 void mouse_close()
12 {
13 }
15 void mouse_poll_host()
16 {
17 //poll_mouse();
18 mouse_buttons = mouse_b;
19 }
21 void mouse_get_mickeys(int *x, int *y)
22 {
23 if (mousecapture)
24 {
25 get_mouse_mickeys(x, y);
26 // position_mouse(64, 64);
27 }
28 else
29 *x = *y = 0;
30 }
