Subversion Repositories eduke32

Rev

Rev 4541 | Rev 4766 | Go to most recent revision | Details | Compare with Previous | 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
4541 hendricks2 20
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
5 Plagman 21
 
22
Original Source: 1996 - Todd Replogle
23
Prepared for public release: 03/21/2003 - Charlie Wiederhold, 3D Realms
2456 hendricks2 24
Modifications for JonoF's port by Jonathon Fowler (jf@jonof.id.au)
5 Plagman 25
*/
26
//-------------------------------------------------------------------------
27
 
4747 terminx 28
#ifndef mouse_h_
29
#define mouse_h_
3116 hendricks2 30
#ifdef EXTERNC
31
{
5 Plagman 32
#endif
33
 
34
#define LEFT_MOUSE   1
35
#define RIGHT_MOUSE  2
36
#define MIDDLE_MOUSE 4
37
#define THUMB_MOUSE  8
478 terminx 38
#define WHEELUP_MOUSE 16
39
#define WHEELDOWN_MOUSE 32
5 Plagman 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
 
2624 helixhorne 44
int32_t Mouse_Init( void );
5 Plagman 45
void    MOUSE_Shutdown( void );
2940 helixhorne 46
//void    MOUSE_ShowCursor( void );
47
//void    MOUSE_HideCursor( void );
2624 helixhorne 48
int32_t MOUSE_GetButtons( void );
3199 terminx 49
#define MOUSE_ClearButton(b) (mouseb &= ~b)
50
#define MOUSE_ClearAllButtons() mouseb = 0
51
#define MOUSE_GetDelta(x, y) readmousexy(x,y)
5 Plagman 52
 
3116 hendricks2 53
#ifdef EXTERNC
5 Plagman 54
};
55
#endif
56
#endif /* __mouse_h */