V-Gears 0
Free Final Fantasy VII engine.
Event.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2022 The V-Gears Team
3 *
4 * This file is part of V-Gears
5 *
6 * V-Gears is free software: you can redistribute it and/or modify it under
7 * terms of the GNU General Public License as published by the Free Software
8 * Foundation, version 3.0 (GPLv3) of the License.
9 *
10 * V-Gears is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16#pragma once
17
18// Add this include because this is only common file between everything that
19// uses Input function.
20#include <OIS/OIS.h>
21
22namespace VGears{
23
28
33
38
43
48
53
58
63
68
73
78 };
79
80
84 struct Event{
85
92
100 Event(EventType n): type(n), param1(0), param2(0){};
101
109 Event(EventType n, float p1, float p2): type(n), param1(p1), param2(p2){};
110
115
119 float param1;
120
124 float param2;
125
130 };
131}
Definition: FF7NameLookup.h:24
Ogre::String String
Definition: TypeDefine.h:37
EventType
Type of event.
Definition: Event.h:27
@ ET_KEY_REPEAT
A key is being held down.
Definition: Event.h:42
@ ET_MOUSE_PRESS
A mouse button is pressed.
Definition: Event.h:62
@ ET_NULL
Null event.
Definition: Event.h:32
@ ET_KEY_RELEASE
A key is released.
Definition: Event.h:57
@ ET_KEY_REPEAT_WAIT
Definition: Event.h:47
@ ET_KEY_PRESS
A key is pressed.
Definition: Event.h:37
@ ET_MOUSE_SCROLL
The mouse has scrolled.
Definition: Event.h:77
@ ET_MOUSE_MOVE
The mouse has moved.
Definition: Event.h:72
@ ET_KEY_IMPULSE
Definition: Event.h:52
@ ET_MOUSE_RELEASE
A mouse button is released.
Definition: Event.h:67
An input event.
Definition: Event.h:84
Ogre::String event
Event ID.
Definition: Event.h:129
float param1
First event parameter.
Definition: Event.h:119
Event()
Constructor.
Definition: Event.h:91
float param2
Second event parameter.
Definition: Event.h:124
Event(EventType n, float p1, float p2)
Constructor.
Definition: Event.h:109
EventType type
The type of the event.
Definition: Event.h:114
Event(EventType n)
Constructor.
Definition: Event.h:100