2006-03-20 17:12:09 +00:00
|
|
|
/*
|
|
|
|
*
|
2008-01-29 14:49:54 +00:00
|
|
|
* SDL mouse driver header
|
2006-03-20 17:12:09 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MOUSE_H
|
|
|
|
#define MOUSE_H
|
|
|
|
|
|
|
|
#include "pstypes.h"
|
|
|
|
#include "fix.h"
|
|
|
|
|
2008-09-30 00:07:07 +00:00
|
|
|
#define MOUSE_MAX_BUTTONS 16
|
2008-01-29 14:49:54 +00:00
|
|
|
#define Z_SENSITIVITY 100
|
|
|
|
#define MBTN_LEFT 0
|
2007-06-11 15:54:09 +00:00
|
|
|
#define MBTN_RIGHT 1
|
|
|
|
#define MBTN_MIDDLE 2
|
2008-01-29 14:49:54 +00:00
|
|
|
#define MBTN_Z_UP 3
|
2007-06-11 15:54:09 +00:00
|
|
|
#define MBTN_Z_DOWN 4
|
|
|
|
#define MBTN_PITCH_BACKWARD 5
|
|
|
|
#define MBTN_PITCH_FORWARD 6
|
|
|
|
#define MBTN_BANK_LEFT 7
|
|
|
|
#define MBTN_BANK_RIGHT 8
|
|
|
|
#define MBTN_HEAD_LEFT 9
|
|
|
|
#define MBTN_HEAD_RIGHT 10
|
2008-09-30 00:07:07 +00:00
|
|
|
#define MBTN_11 11
|
|
|
|
#define MBTN_12 12
|
|
|
|
#define MBTN_13 13
|
|
|
|
#define MBTN_14 14
|
|
|
|
#define MBTN_15 15
|
|
|
|
#define MBTN_16 16
|
2008-01-29 14:49:54 +00:00
|
|
|
#define MOUSE_LBTN 1
|
|
|
|
#define MOUSE_RBTN 2
|
|
|
|
#define MOUSE_MBTN 4
|
2006-03-20 17:12:09 +00:00
|
|
|
|
|
|
|
extern void mouse_flush(); // clears all mice events...
|
2008-11-14 16:56:40 +00:00
|
|
|
extern void d_mouse_init(void);
|
2007-05-14 13:38:44 +00:00
|
|
|
extern void mouse_get_pos( int *x, int *y, int *z );
|
|
|
|
extern void mouse_get_delta( int *dx, int *dy, int *dz );
|
2006-03-20 17:12:09 +00:00
|
|
|
extern int mouse_get_btns();
|
|
|
|
extern void mouse_set_pos( int x, int y);
|
|
|
|
extern fix mouse_button_down_time(int button);
|
|
|
|
extern int mouse_button_down_count(int button);
|
|
|
|
extern int mouse_button_state(int button);
|
|
|
|
|
|
|
|
#endif
|