mirror of
https://github.com/86Box/86Box.git
synced 2026-02-23 01:48:21 -07:00
35 lines
457 B
C
35 lines
457 B
C
/* Copyright holders: Sarah Walker
|
|
see COPYING for more details
|
|
*/
|
|
#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;
|
|
}
|
|
|