1 | /* |
---|
2 | * ORXONOX - the hottest 3D action shooter ever to exist |
---|
3 | * |
---|
4 | * |
---|
5 | * License notice: |
---|
6 | * |
---|
7 | * This program 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. See the |
---|
15 | * GNU General Public License for more details. |
---|
16 | * |
---|
17 | * You should have received a copy of the GNU General Public License |
---|
18 | * along with this program; if not, write to the Free Software |
---|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
---|
20 | * |
---|
21 | * Author: |
---|
22 | * Reto Grieder |
---|
23 | * Co-authors: |
---|
24 | * ... |
---|
25 | * |
---|
26 | */ |
---|
27 | |
---|
28 | /** |
---|
29 | @file |
---|
30 | @brief Implementation of the different input handlers. |
---|
31 | */ |
---|
32 | |
---|
33 | #include "InputHandler.h" |
---|
34 | |
---|
35 | namespace orxonox |
---|
36 | { |
---|
37 | // ############################### |
---|
38 | // ### InputHandlerGame ### |
---|
39 | // ############################### |
---|
40 | |
---|
41 | /** |
---|
42 | @brief standard constructor |
---|
43 | */ |
---|
44 | InputHandlerGame::InputHandlerGame() |
---|
45 | { |
---|
46 | } |
---|
47 | |
---|
48 | /** |
---|
49 | @brief Destructor |
---|
50 | */ |
---|
51 | InputHandlerGame::~InputHandlerGame() |
---|
52 | { |
---|
53 | } |
---|
54 | |
---|
55 | /** |
---|
56 | @brief Event handler for the keyPressed Event. |
---|
57 | @param e Event information |
---|
58 | */ |
---|
59 | bool InputHandlerGame::keyPressed(const OIS::KeyEvent &e) |
---|
60 | { |
---|
61 | return true; |
---|
62 | } |
---|
63 | |
---|
64 | /** |
---|
65 | @brief Event handler for the keyReleased Event. |
---|
66 | @param e Event information |
---|
67 | */ |
---|
68 | bool InputHandlerGame::keyReleased(const OIS::KeyEvent &e) |
---|
69 | { |
---|
70 | return true; |
---|
71 | } |
---|
72 | |
---|
73 | /** |
---|
74 | @brief Event handler for the mouseMoved Event. |
---|
75 | @param e Event information |
---|
76 | */ |
---|
77 | bool InputHandlerGame::mouseMoved(const OIS::MouseEvent &e) |
---|
78 | { |
---|
79 | return true; |
---|
80 | } |
---|
81 | |
---|
82 | /** |
---|
83 | @brief Event handler for the mousePressed Event. |
---|
84 | @param e Event information |
---|
85 | @param id The ID of the mouse button |
---|
86 | */ |
---|
87 | bool InputHandlerGame::mousePressed(const OIS::MouseEvent &e, OIS::MouseButtonID id) |
---|
88 | { |
---|
89 | return true; |
---|
90 | } |
---|
91 | |
---|
92 | /** |
---|
93 | @brief Event handler for the mouseReleased Event. |
---|
94 | @param e Event information |
---|
95 | @param id The ID of the mouse button |
---|
96 | */ |
---|
97 | bool InputHandlerGame::mouseReleased(const OIS::MouseEvent &e, OIS::MouseButtonID id) |
---|
98 | { |
---|
99 | return true; |
---|
100 | } |
---|
101 | |
---|
102 | // ############################### |
---|
103 | // ### InputHandlerGUI ### |
---|
104 | // ############################### |
---|
105 | |
---|
106 | /** |
---|
107 | @brief standard constructor |
---|
108 | */ |
---|
109 | InputHandlerGUI::InputHandlerGUI() |
---|
110 | { |
---|
111 | } |
---|
112 | |
---|
113 | /** |
---|
114 | @brief Destructor |
---|
115 | */ |
---|
116 | InputHandlerGUI::~InputHandlerGUI() |
---|
117 | { |
---|
118 | } |
---|
119 | |
---|
120 | /** |
---|
121 | @brief Event handler for the keyPressed Event. |
---|
122 | @param e Event information |
---|
123 | */ |
---|
124 | bool InputHandlerGUI::keyPressed(const OIS::KeyEvent &e) |
---|
125 | { |
---|
126 | return true; |
---|
127 | } |
---|
128 | |
---|
129 | /** |
---|
130 | @brief Event handler for the keyReleased Event. |
---|
131 | @param e Event information |
---|
132 | */ |
---|
133 | bool InputHandlerGUI::keyReleased(const OIS::KeyEvent &e) |
---|
134 | { |
---|
135 | return true; |
---|
136 | } |
---|
137 | |
---|
138 | /** |
---|
139 | @brief Event handler for the mouseMoved Event. |
---|
140 | @param e Event information |
---|
141 | */ |
---|
142 | bool InputHandlerGUI::mouseMoved(const OIS::MouseEvent &e) |
---|
143 | { |
---|
144 | return true; |
---|
145 | } |
---|
146 | |
---|
147 | /** |
---|
148 | @brief Event handler for the mousePressed Event. |
---|
149 | @param e Event information |
---|
150 | @param id The ID of the mouse button |
---|
151 | */ |
---|
152 | bool InputHandlerGUI::mousePressed(const OIS::MouseEvent &e, OIS::MouseButtonID id) |
---|
153 | { |
---|
154 | return true; |
---|
155 | } |
---|
156 | |
---|
157 | /** |
---|
158 | @brief Event handler for the mouseReleased Event. |
---|
159 | @param e Event information |
---|
160 | @param id The ID of the mouse button |
---|
161 | */ |
---|
162 | bool InputHandlerGUI::mouseReleased(const OIS::MouseEvent &e, OIS::MouseButtonID id) |
---|
163 | { |
---|
164 | return true; |
---|
165 | } |
---|
166 | |
---|
167 | } |
---|