Subversion Repositories eduke32

Rev

Rev 478 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5 Plagman 1
//-------------------------------------------------------------------------
2
/*
3
Copyright (C) 1996, 2003 - 3D Realms Entertainment
4
 
5
This file is part of Duke Nukem 3D version 1.5 - Atomic Edition
6
 
7
Duke Nukem 3D is free software; you can redistribute it and/or
8
modify it under the terms of the GNU General Public License
9
as published by the Free Software Foundation; either version 2
10
of the License, or (at your option) any later version.
11
 
12
This program is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15
 
16
See the GNU General Public License for more details.
17
 
18
You should have received a copy of the GNU General Public License
19
along with this program; if not, write to the Free Software
20
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
21
 
22
Original Source: 1996 - Todd Replogle
23
Prepared for public release: 03/21/2003 - Charlie Wiederhold, 3D Realms
24
Modifications for JonoF's port by Jonathon Fowler (jonof@edgenetwk.com)
25
*/
26
//-------------------------------------------------------------------------
27
 
28
#ifndef __mouse_h
29
#define __mouse_h
30
#ifdef __cplusplus
31
extern "C" {
32
#endif
33
 
34
#define LEFT_MOUSE   1
35
#define RIGHT_MOUSE  2
36
#define MIDDLE_MOUSE 4
37
#define THUMB_MOUSE  8
38
#define WHEELDOWN_MOUSE 16
39
#define WHEELUP_MOUSE   32
40
#define LEFT_MOUSE_PRESSED( button ) ( ( ( button ) & LEFT_MOUSE ) != 0 )
41
#define RIGHT_MOUSE_PRESSED( button ) ( ( ( button ) & RIGHT_MOUSE ) != 0 )
42
#define MIDDLE_MOUSE_PRESSED( button ) ( ( ( button ) & MIDDLE_MOUSE ) != 0 )
43
 
44
boolean MOUSE_Init( void );
45
void    MOUSE_Shutdown( void );
46
void    MOUSE_ShowCursor( void );
47
void    MOUSE_HideCursor( void );
48
int32   MOUSE_GetButtons( void );
49
int32   MOUSE_ClearButton( int32 b );
50
void    MOUSE_GetPosition( int32*x, int32*y  );
51
void    MOUSE_GetDelta( int32*x, int32*y  );
52
 
53
#ifdef __cplusplus
54
};
55
#endif
56
#endif /* __mouse_h */