dxx-rebirth/arch/include/mouse.h

53 lines
1.6 KiB
C
Raw Normal View History

2006-04-03 17:36:27 +00:00
/*
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
IN USING, DISPLAYING, AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
FREE PURPOSES. IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES. THE END-USER UNDERSTANDS
AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.
COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
*/
/*
*
* SDL mouse driver header
2006-04-03 17:36:27 +00:00
*
*/
#ifndef MOUSE_H
#define MOUSE_H
#include "pstypes.h"
2006-04-03 17:36:27 +00:00
#include "fix.h"
#define MOUSE_MAX_BUTTONS 8
#define Z_SENSITIVITY 100
#define MBTN_LEFT 0
2007-06-11 15:54:09 +00:00
#define MBTN_RIGHT 1
#define MBTN_MIDDLE 2
#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
2007-06-11 15:54:09 +00:00
#define MBTN_BANK_LEFT 7
#define MBTN_BANK_RIGHT 8
2007-06-11 15:54:09 +00:00
#define MBTN_HEAD_LEFT 9
#define MBTN_HEAD_RIGHT 10
#define MOUSE_LBTN 1
#define MOUSE_RBTN 2
#define MOUSE_MBTN 4
2006-04-03 17:36:27 +00:00
extern void mouse_flush(); // clears all mice events...
extern void mouse_close();
extern void mouse_get_pos( int *x, int *y, int *z );
extern void mouse_get_delta( int *dx, int *dy, int *dz );
2006-04-03 17:36:27 +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