Initial port to Linux (using Allegro).
64-bit fixes. Some changes to aid portability. A few other tweaks.
This commit is contained in:
parent
4b3f77c926
commit
56b455844e
70 changed files with 12702 additions and 282 deletions
31
src/allegro-mouse.c
Normal file
31
src/allegro-mouse.c
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
#include "allegro-main.h"
|
||||
#include "plat-mouse.h"
|
||||
|
||||
int mouse_buttons;
|
||||
|
||||
void mouse_init()
|
||||
{
|
||||
install_mouse();
|
||||
}
|
||||
|
||||
void mouse_close()
|
||||
{
|
||||
}
|
||||
|
||||
void mouse_poll_host()
|
||||
{
|
||||
//poll_mouse();
|
||||
mouse_buttons = mouse_b;
|
||||
}
|
||||
|
||||
void mouse_get_mickeys(int *x, int *y)
|
||||
{
|
||||
if (mousecapture)
|
||||
{
|
||||
get_mouse_mickeys(x, y);
|
||||
// position_mouse(64, 64);
|
||||
}
|
||||
else
|
||||
*x = *y = 0;
|
||||
}
|
||||
|
||||
Loading…
Reference in a new issue