2017-06-21 00:41:34 -04:00
|
|
|
/*
|
|
|
|
|
* 86Box A hypervisor and IBM PC system emulator that specializes in
|
|
|
|
|
* running old operating systems and software designed for IBM
|
|
|
|
|
* PC systems and compatibles from 1981 through fairly recent
|
|
|
|
|
* system designs based on the PCI bus.
|
|
|
|
|
*
|
|
|
|
|
* This file is part of the 86Box distribution.
|
|
|
|
|
*
|
2017-11-05 01:57:04 -05:00
|
|
|
* Definitions for the mouse driver.
|
2017-06-21 00:41:34 -04:00
|
|
|
*
|
2018-03-19 01:02:04 +01:00
|
|
|
* Version: @(#)mouse.h 1.0.15 2018/03/18
|
2017-06-21 00:41:34 -04:00
|
|
|
*
|
2017-12-04 11:59:26 -05:00
|
|
|
* Authors: Miran Grca, <mgrca8@gmail.com>
|
2017-06-21 00:41:34 -04:00
|
|
|
* Fred N. van Kempen, <decwiz@yahoo.com>
|
2017-10-23 05:20:18 -04:00
|
|
|
*
|
2018-01-26 13:35:50 +01:00
|
|
|
* Copyright 2016-2018 Miran Grca.
|
|
|
|
|
* Copyright 2017,2018 Fred N. van Kempen.
|
2017-06-21 00:41:34 -04:00
|
|
|
*/
|
2017-06-04 02:11:19 -04:00
|
|
|
#ifndef EMU_MOUSE_H
|
|
|
|
|
# define EMU_MOUSE_H
|
2016-06-26 00:34:39 +02:00
|
|
|
|
|
|
|
|
|
2017-11-05 01:57:04 -05:00
|
|
|
#define MOUSE_TYPE_NONE 0 /* no mouse configured */
|
|
|
|
|
#define MOUSE_TYPE_INTERNAL 1 /* machine has internal mouse */
|
|
|
|
|
#define MOUSE_TYPE_LOGIBUS 2 /* Logitech/ATI Bus Mouse */
|
|
|
|
|
#define MOUSE_TYPE_INPORT 3 /* Microsoft InPort Mouse */
|
2017-07-24 12:04:39 +02:00
|
|
|
#if 0
|
2017-12-04 11:59:26 -05:00
|
|
|
# define MOUSE_TYPE_GENIBUS 4 /* Genius Bus Mouse */
|
2017-07-24 12:04:39 +02:00
|
|
|
#endif
|
2017-12-04 11:59:26 -05:00
|
|
|
#define MOUSE_TYPE_MSYSTEMS 5 /* Mouse Systems mouse */
|
|
|
|
|
#define MOUSE_TYPE_MICROSOFT 6 /* Microsoft Serial Mouse */
|
|
|
|
|
#define MOUSE_TYPE_LOGITECH 7 /* Logitech Serial Mouse */
|
|
|
|
|
#define MOUSE_TYPE_MSWHEEL 8 /* Serial Wheel Mouse */
|
2017-12-10 02:08:37 -05:00
|
|
|
#define MOUSE_TYPE_PS2 9 /* PS/2 series Bus Mouse */
|
2017-01-16 01:49:19 +01:00
|
|
|
|
2016-12-23 03:16:24 +01:00
|
|
|
|
2017-12-04 11:59:26 -05:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
2017-05-05 01:49:42 +02:00
|
|
|
|
|
|
|
|
extern int mouse_type;
|
2017-10-23 05:20:18 -04:00
|
|
|
extern int mouse_x, mouse_y, mouse_z;
|
|
|
|
|
extern int mouse_buttons;
|
|
|
|
|
|
2017-05-05 01:49:42 +02:00
|
|
|
|
2017-12-04 11:59:26 -05:00
|
|
|
#ifdef EMU_DEVICE_H
|
2018-03-19 01:02:04 +01:00
|
|
|
extern const device_t *mouse_get_device(int mouse);
|
|
|
|
|
extern void *mouse_ps2_init(const device_t *);
|
2017-12-10 02:08:37 -05:00
|
|
|
|
2018-03-19 01:02:04 +01:00
|
|
|
extern const device_t mouse_logibus_device;
|
|
|
|
|
extern const device_t mouse_msinport_device;
|
2017-12-04 11:59:26 -05:00
|
|
|
#if 0
|
2018-03-19 01:02:04 +01:00
|
|
|
extern const device_t mouse_genibus_device;
|
2017-12-04 11:59:26 -05:00
|
|
|
#endif
|
2018-03-19 01:02:04 +01:00
|
|
|
extern const device_t mouse_mssystems_device;
|
|
|
|
|
extern const device_t mouse_msserial_device;
|
|
|
|
|
extern const device_t mouse_ps2_device;
|
2017-12-04 11:59:26 -05:00
|
|
|
#endif
|
2017-05-05 01:49:42 +02:00
|
|
|
|
2017-12-04 11:59:26 -05:00
|
|
|
extern void mouse_init(void);
|
2018-01-29 01:19:49 +01:00
|
|
|
extern void mouse_close(void);
|
2017-12-04 11:59:26 -05:00
|
|
|
extern void mouse_reset(void);
|
2017-12-10 02:08:37 -05:00
|
|
|
extern void mouse_set_buttons(int buttons);
|
2017-12-04 11:59:26 -05:00
|
|
|
extern void mouse_process(void);
|
2017-12-10 02:08:37 -05:00
|
|
|
extern void mouse_set_poll(int (*f)(int,int,int,int,void *), void *);
|
2017-12-04 11:59:26 -05:00
|
|
|
extern void mouse_poll(void);
|
2017-08-03 14:07:03 -04:00
|
|
|
|
2017-05-05 01:49:42 +02:00
|
|
|
extern char *mouse_get_name(int mouse);
|
|
|
|
|
extern char *mouse_get_internal_name(int mouse);
|
|
|
|
|
extern int mouse_get_from_internal_name(char *s);
|
2018-01-26 13:35:50 +01:00
|
|
|
extern int mouse_has_config(int mouse);
|
2017-05-05 01:49:42 +02:00
|
|
|
extern int mouse_get_type(int mouse);
|
|
|
|
|
extern int mouse_get_ndev(void);
|
2017-12-10 02:08:37 -05:00
|
|
|
extern int mouse_get_buttons(void);
|
2017-05-05 01:49:42 +02:00
|
|
|
|
2017-12-04 11:59:26 -05:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
2017-05-05 01:49:42 +02:00
|
|
|
|
2017-06-04 02:11:19 -04:00
|
|
|
#endif /*EMU_MOUSE_H*/
|