dxx-rebirth/arch/include/mouse.h

59 lines
1.8 KiB
C

/*
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
*
*/
#ifndef MOUSE_H
#define MOUSE_H
#include "pstypes.h"
#include "fix.h"
#define MOUSE_MAX_BUTTONS 16
#define Z_SENSITIVITY 100
#define MBTN_LEFT 0
#define MBTN_RIGHT 1
#define MBTN_MIDDLE 2
#define MBTN_Z_UP 3
#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
#define MBTN_11 11
#define MBTN_12 12
#define MBTN_13 13
#define MBTN_14 14
#define MBTN_15 15
#define MBTN_16 16
#define MOUSE_LBTN 1
#define MOUSE_RBTN 2
#define MOUSE_MBTN 4
extern void mouse_flush(); // clears all mice events...
extern void d_mouse_init(void);
extern void mouse_get_pos( int *x, int *y, int *z );
extern void mouse_get_delta( int *dx, int *dy, int *dz );
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