code cleanup: make header defines more consistent, JOYSENSOR header guard had a typo...
[blender-staging.git] / source / gameengine / GameLogic / SCA_PythonKeyboard.h
1 /*
2  * ***** BEGIN GPL LICENSE BLOCK *****
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version 2
7  * of the License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software Foundation,
16  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17  *
18  * Contributor(s): none yet.
19  *
20  * ***** END GPL LICENSE BLOCK *****
21  */
22
23 /** \file SCA_PythonKeyboard.h
24  *  \ingroup gamelogic
25  */
26
27 #ifndef __SCA_PYTHONKEYBOARD_H__
28 #define __SCA_PYTHONKEYBOARD_H__
29
30 #include "PyObjectPlus.h"
31
32 class SCA_PythonKeyboard : public PyObjectPlus
33 {
34         Py_Header
35 private:
36         class SCA_IInputDevice *m_keyboard;
37 #ifdef WITH_PYTHON
38         PyObject *m_event_dict;
39 #endif
40 public:
41         SCA_PythonKeyboard(class SCA_IInputDevice* keyboard);
42         virtual ~SCA_PythonKeyboard();
43
44 #ifdef WITH_PYTHON
45         static PyObject*        pyattr_get_events(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef);
46         static PyObject*        pyattr_get_active_events(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef);
47 #endif
48 };
49
50 #endif  /* __SCA_PYTHONKEYBOARD_H__ */