[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] r3251 - in trunk/pingus: . src/input
From: |
grumbel at BerliOS |
Subject: |
[Pingus-CVS] r3251 - in trunk/pingus: . src/input |
Date: |
Fri, 28 Sep 2007 02:48:31 +0200 |
Author: grumbel
Date: 2007-09-28 02:48:28 +0200 (Fri, 28 Sep 2007)
New Revision: 3251
Added:
trunk/pingus/src/input/evdev_driver.cpp
trunk/pingus/src/input/evdev_driver.hpp
Modified:
trunk/pingus/SConstruct
Log:
- added empty evdev input class (linux only)
Modified: trunk/pingus/SConstruct
===================================================================
--- trunk/pingus/SConstruct 2007-09-27 03:12:35 UTC (rev 3250)
+++ trunk/pingus/SConstruct 2007-09-28 00:48:28 UTC (rev 3251)
@@ -306,6 +306,7 @@
# opts.Add('profile', 'Build with profiling support', 0)
opts.Add('with_xinput', 'Build with Xinput support', False)
opts.Add('with_linuxusbmouse', 'Build with Linux USB mouse support', True)
+ opts.Add('with_linuxevdev', 'Build with Linux evdev support', True)
opts.Add('with_wiimote', 'Build with Wiimote support', False)
opts.Add('ignore_errors', 'Ignore any fatal configuration errors', False)
opts.Add('optional_sources', 'Additional source files', [])
@@ -352,6 +353,13 @@
config_h_defines += [('HAVE_LINUXUSBMOUSE', 1)]
env['optional_sources'] += ['src/input/usbmouse_driver.cpp']
+ if not env['with_linuxevdev']:
+ reports += " * Linux evdev support: disabled\n"
+ else:
+ reports += " * Linux evdev support: ok\n"
+ config_h_defines += [('HAVE_LINUXEVDEV', 1)]
+ env['optional_sources'] += ['src/input/evdev_driver.cpp']
+
if not env['with_wiimote']:
reports += " * Wiimote support: disabled\n"
elif config.CheckLibWithHeader('cwiid', 'cwiid.h', 'c++'):
Added: trunk/pingus/src/input/evdev_driver.cpp
===================================================================
--- trunk/pingus/src/input/evdev_driver.cpp 2007-09-27 03:12:35 UTC (rev
3250)
+++ trunk/pingus/src/input/evdev_driver.cpp 2007-09-28 00:48:28 UTC (rev
3251)
@@ -0,0 +1,75 @@
+// $Id$
+//
+// Pingus - A free Lemmings clone
+// Copyright (C) 2007 Ingo Ruhnke <address@hidden>
+//
+// 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; either version 2
+// of the License, or (at your option) any later version.
+//
+// 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+#include "evdev_driver.hpp"
+
+namespace Input {
+
+EvdevDriver::EvdevDriver()
+{
+}
+
+EvdevDriver::~EvdevDriver()
+{
+}
+
+std::string
+EvdevDriver::get_name() const
+{
+ return "evdev";
+}
+
+void
+EvdevDriver::update(float delta)
+{
+}
+
+Button*
+EvdevDriver::create_button (const FileReader& reader, Control* parent)
+{
+ return 0;
+}
+
+Axis*
+EvdevDriver::create_axis(const FileReader& reader, Control* parent)
+{
+ return 0;
+}
+
+Scroller*
+EvdevDriver::create_scroller(const FileReader& reader, Control* parent)
+{
+ return 0;
+}
+
+Pointer*
+EvdevDriver::create_pointer (const FileReader& reader, Control* parent)
+{
+ return 0;
+}
+
+Keyboard*
+EvdevDriver::create_keyboard(const FileReader& reader, Control* parent)
+{
+ return 0;
+}
+
+} // namespace Input
+
+/* EOF */
Property changes on: trunk/pingus/src/input/evdev_driver.cpp
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: trunk/pingus/src/input/evdev_driver.hpp
===================================================================
--- trunk/pingus/src/input/evdev_driver.hpp 2007-09-27 03:12:35 UTC (rev
3250)
+++ trunk/pingus/src/input/evdev_driver.hpp 2007-09-28 00:48:28 UTC (rev
3251)
@@ -0,0 +1,49 @@
+// $Id$
+//
+// Pingus - A free Lemmings clone
+// Copyright (C) 2007 Ingo Ruhnke <address@hidden>
+//
+// 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; either version 2
+// of the License, or (at your option) any later version.
+//
+// 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+#ifndef HEADER_PINGUS_INPUT_EVDEV_DRIVER_HPP
+#define HEADER_PINGUS_INPUT_EVDEV_DRIVER_HPP
+
+#include "driver.hpp"
+
+namespace Input {
+
+/** */
+class EvdevDriver : public Driver
+{
+private:
+public:
+ EvdevDriver();
+ ~EvdevDriver();
+
+ std::string get_name() const;
+ void update(float delta);
+
+ Button* create_button (const FileReader& reader, Control* parent);
+ Axis* create_axis (const FileReader& reader, Control* parent);
+ Scroller* create_scroller(const FileReader& reader, Control* parent);
+ Pointer* create_pointer (const FileReader& reader, Control* parent);
+ Keyboard* create_keyboard(const FileReader& reader, Control* parent);
+};
+
+} // namespace Input
+
+#endif
+
+/* EOF */
Property changes on: trunk/pingus/src/input/evdev_driver.hpp
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] r3251 - in trunk/pingus: . src/input,
grumbel at BerliOS <=