[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Usata-commits] Changes to usata2/src/input-system.cpp
From: |
David Lau |
Subject: |
[Usata-commits] Changes to usata2/src/input-system.cpp |
Date: |
Fri, 25 Feb 2005 14:50:48 -0500 |
Index: usata2/src/input-system.cpp
diff -u usata2/src/input-system.cpp:1.3 usata2/src/input-system.cpp:1.4
--- usata2/src/input-system.cpp:1.3 Tue Jan 25 19:26:33 2005
+++ usata2/src/input-system.cpp Fri Feb 25 19:50:47 2005
@@ -10,7 +10,7 @@
// included in the software distribution, or visit
// http://www.fsf.org/licenses/gpl.html.
//
-// $Id: input-system.cpp,v 1.3 2005/01/25 19:26:33 skunix Exp $
+// $Id: input-system.cpp,v 1.4 2005/02/25 19:50:47 skunix Exp $
#include <vector>
#include <algorithm>
@@ -24,7 +24,7 @@
namespace input
{
-typedef boost::shared_ptr<Driver> Driver_sp;
+//typedef boost::shared_ptr<Driver> Driver_sp;
Event::Event(int type_)
: mType (type_)
@@ -39,15 +39,13 @@
return;
}
-
-Driver::Driver(const std::string& name)
-: mName(name)
+Driver::Driver(const std::string& pName)
+: mName(pName)
{
}
-Driver::~Driver() throw()
+Driver::~Driver()
{
- return;
}
Manager::Manager()
@@ -59,7 +57,7 @@
Manager::trim()
{
- mDrivers.swap(mDrivers);
+ //mDrivers.swap(mDrivers);
}
int
Manager::push_handler(const EventHandler& evh)
@@ -83,6 +81,7 @@
boost::bind(&Driver::update,
boost::bind(&Driver_sp::get,_1)));
DriversV::iterator it = mDrivers.begin(), it_end=mDrivers.end();
+
Event *ne;
@@ -124,13 +123,13 @@
}
return;
}
+
void
Manager::add_driver(Driver*drv)
{
mDrivers.push_back(Driver_sp(drv));
return;
}
-
Manager::~Manager()
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Usata-commits] Changes to usata2/src/input-system.cpp,
David Lau <=