Another major change round. VNC moved to top level. More cleanups of global data, all VM processing now handled in pc.c (out of the platforms, yay!), and some video cleanups. This build MAY have issues with window sizes, resizing, and fullscreen will not work until the next build- sorry.
This commit is contained in:
21
src/mouse.c
21
src/mouse.c
@@ -8,7 +8,7 @@
|
||||
*
|
||||
* Common driver module for MOUSE devices.
|
||||
*
|
||||
* Version: @(#)mouse.c 1.0.9 2017/10/09
|
||||
* Version: @(#)mouse.c 1.0.10 2017/10/17
|
||||
*
|
||||
* Authors: Sarah Walker, <http://pcem-emulator.co.uk/>
|
||||
* Miran Grca, <mgrca8@gmail.com>
|
||||
@@ -26,6 +26,7 @@
|
||||
#include "device.h"
|
||||
#include "mouse.h"
|
||||
#include "machine/machine.h"
|
||||
#include "plat_mouse.h"
|
||||
|
||||
|
||||
static mouse_t mouse_none = {
|
||||
@@ -81,6 +82,24 @@ mouse_emu_close(void)
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
mouse_process(void)
|
||||
{
|
||||
static int poll_delay = 2;
|
||||
int x, y, z;
|
||||
|
||||
if (--poll_delay) return;
|
||||
|
||||
mouse_poll_host();
|
||||
|
||||
mouse_get_mickeys(&x, &y, &z);
|
||||
|
||||
mouse_poll(x, y, z, mouse_buttons);
|
||||
|
||||
poll_delay = 2;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
mouse_poll(int x, int y, int z, int b)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user