From: Markus R. <rol...@us...> - 2005-12-25 17:23:30
|
Update of /cvsroot/simspark/simspark/contrib/plugin/inputwx In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20118 Added Files: .cvsignore Makefile.am export.cpp inputsystemwx.cpp inputsystemwx.h inputsystemwx_c.cpp Log Message: - added InputSystemWX; this should become an interface between wxWidgets events and the kerosin InputServer --- NEW FILE: .cvsignore --- .deps .libs Makefile Makefile.in *.la *.lo --- NEW FILE: inputsystemwx.h --- /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- this file is part of rcssserver3D Fri May 9 2003 Copyright (C) 2002,2003 Koblenz University Copyright (C) 2003 RoboCup Soccer Server 3D Maintenance Group $Id: inputsystemwx.h,v 1.1 2005/12/25 17:23:21 rollmark Exp $ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. InputSystemWX HISTORY: 25.12.05 - MR - Initial version */ #ifndef INPUTSYSTEMWX_H__ #define INPUTSYSTEMWX_H__ #include <deque> #include <kerosin/inputserver/inputsystem.h> #include <kerosin/inputserver/inputserver.h> class InputSystemWX : public kerosin::InputSystem { // // functions // public: InputSystemWX(); virtual ~InputSystemWX(); virtual bool Init(kerosin::InputServer* inputServer); virtual bool CreateDevice(const std::string& deviceName); protected: virtual bool UpdateTimerInput(kerosin::InputServer::Input& input); // // members // protected: }; DECLARE_CLASS(InputSystemWX); #endif //INPUTSYSTEMWX_H__ --- NEW FILE: export.cpp --- /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- this file is part of rcssserver3D Fri May 9 2003 Copyright (C) 2002,2003 Koblenz University Copyright (C) 2003 RoboCup Soccer Server 3D Maintenance Group $Id: export.cpp,v 1.1 2005/12/25 17:23:21 rollmark Exp $ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "inputsystemwx.h" #include <zeitgeist/zeitgeist.h> ZEITGEIST_EXPORT_BEGIN() ZEITGEIST_EXPORT(InputSystemWX); ZEITGEIST_EXPORT_END() --- NEW FILE: inputsystemwx.cpp --- /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- this file is part of rcssserver3D Fri May 9 2003 Copyright (C) 2002,2003 Koblenz University Copyright (C) 2003 RoboCup Soccer Server 3D Maintenance Group $Id: inputsystemwx.cpp,v 1.1 2005/12/25 17:23:21 rollmark Exp $ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "inputsystemwx.h" #include <kerosin/inputserver/inputserver.h> #include <zeitgeist/logserver/logserver.h> using namespace boost; using namespace kerosin; using namespace zeitgeist; InputSystemWX::InputSystemWX() : InputSystem() { } InputSystemWX::~InputSystemWX() { } bool InputSystemWX::Init(InputServer *inputServer) { if (InputSystem::Init(inputServer) == false) { return false; } return true; } bool InputSystemWX::CreateDevice(const std::string &deviceName) { // InputSystemWX does not use any device classes return true; } bool InputSystemWX::UpdateTimerInput(InputServer::Input &input) { return true; } --- NEW FILE: Makefile.am --- pkglib_LTLIBRARIES = inputwx.la inputwx_la_SOURCES = export.cpp \ inputsystemwx.cpp \ inputsystemwx.h \ inputsystemwx_c.cpp # -module tells automake we're not building a library but a loadable module # so we don't need the "lib" prefix in the module name inputwx_la_LDFLAGS = -module -version-info 0:0:0 AM_CPPFLAGS = -I${top_srcdir}\ @RUBY_CPPFLAGS@\ @WXWIDGETS_CPPFLAGS@\ @SALT_CPPFLAGS@\ @ZEITGEIST_CPPFLAGS@\ @OXYGEN_CPPFLAGS@\ @KEROSIN_CPPFLAGS@\ @SPARK_CPPFLAGS@ --- NEW FILE: inputsystemwx_c.cpp --- /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- this file is part of rcssserver3D Fri May 9 2003 Copyright (C) 2002,2003 Koblenz University Copyright (C) 2003 RoboCup Soccer Server 3D Maintenance Group $Id: inputsystemwx_c.cpp,v 1.1 2005/12/25 17:23:21 rollmark Exp $ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "inputsystemwx.h" void CLASS(InputSystemWX)::DefineClass() { DEFINE_BASECLASS(kerosin/InputSystem); } |