ScummVM API documentation
mouse.h
1
/* ScummVM - Graphic Adventure Engine
2
*
3
* ScummVM is the legal property of its developers, whose names
4
* are too numerous to list here. Please refer to the COPYRIGHT
5
* file distributed with this source distribution.
6
*
7
* Additional copyright for this file:
8
* Copyright (C) 1999-2000 Revolution Software Ltd.
9
* This code is based on source code created by Revolution Software,
10
* used with permission.
11
*
12
* This program is free software: you can redistribute it and/or modify
13
* it under the terms of the GNU General Public License as published by
14
* the Free Software Foundation, either version 3 of the License, or
15
* (at your option) any later version.
16
*
17
* This program is distributed in the hope that it will be useful,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
* GNU General Public License for more details.
21
*
22
* You should have received a copy of the GNU General Public License
23
* along with this program. If not, see <http://www.gnu.org/licenses/>.
24
*
25
*/
26
27
#ifndef ICB_MOUSE_H
28
#define ICB_MOUSE_H
29
30
#include "engines/icb/p4_generic.h"
31
32
namespace
ICB
{
33
34
// Mouse defines
35
#define RDMOUSE_NOFLASH 0x00
36
#define RDMOUSE_FLASH 0x01
37
38
#define RENDERWIDE 640
39
#define RENDERDEEP 480
40
41
// Mouse button defines
42
#define RD_LEFTBUTTONDOWN 0x01
43
#define RD_LEFTBUTTONUP 0x02
44
#define RD_RIGHTBUTTONDOWN 0x04
45
#define RD_RIGHTBUTTONUP 0x08
46
#define RD_LEFTBUTTONDBLCLK 0x10
47
#define RD_RIGHTBUTTONDBLCLK 0x20
48
49
typedef
struct
{ uint16 buttons; }
_mouseEvent
;
50
51
extern
_mouseEvent
*lastMouseEvent;
// keep track of last mouse event for debugging
52
53
extern
int32 mousex;
// Mouse x coordinate
54
extern
int32 mousey;
// Mouse y coordinate
55
56
extern
void
LogMouseEvent(uint16 buttons);
// Adds a mouse event to the log
57
extern
int32 DrawMouse();
// Renders the mouse onto the back buffer.
58
extern
_mouseEvent
*MouseEvent();
59
60
}
// End of namespace ICB
61
62
#endif
ICB::_mouseEvent
Definition:
mouse.h:49
ICB
Definition:
actor.h:32
engines
icb
mouse.h
Generated on Fri Nov 22 2024 09:12:21 for ScummVM API documentation by
1.8.13