Blender V2.61 - r43446

SCA_PythonKeyboard.h

Go to the documentation of this file.
00001 /*
00002  * ***** BEGIN GPL LICENSE BLOCK *****
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software Foundation,
00016  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00017  *
00018  * Contributor(s): none yet.
00019  *
00020  * ***** END GPL LICENSE BLOCK *****
00021  */
00022 
00027 #ifndef __KX_PYKEYBOARD
00028 #define __KX_PYKEYBOARD
00029 
00030 #include "PyObjectPlus.h"
00031 
00032 class SCA_PythonKeyboard : public PyObjectPlus
00033 {
00034     Py_Header
00035 private:
00036     class SCA_IInputDevice *m_keyboard;
00037 #ifdef WITH_PYTHON
00038     PyObject* m_event_dict;
00039 #endif
00040 public:
00041     SCA_PythonKeyboard(class SCA_IInputDevice* keyboard);
00042     virtual ~SCA_PythonKeyboard();
00043 
00044 #ifdef WITH_PYTHON
00045     static PyObject*    pyattr_get_events(void* self_v, const KX_PYATTRIBUTE_DEF *attrdef);
00046 #endif
00047 };
00048 
00049 #endif //__KX_PYKEYBOARD
00050