[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/input controller.cxx,1.10,1.11
From: |
grumbel |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/input controller.cxx,1.10,1.11 |
Date: |
15 Aug 2002 11:35:15 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src/input
In directory dark:/tmp/cvs-serv24213
Modified Files:
controller.cxx
Log Message:
++it is/(can be) faster than it++, so its better to get used to the first one
Index: controller.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/input/controller.cxx,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- controller.cxx 15 Aug 2002 10:57:15 -0000 1.10
+++ controller.cxx 15 Aug 2002 11:35:13 -0000 1.11
@@ -152,7 +152,7 @@
void
Controller::update (float delta)
{
- for (std::list<Event*>::iterator it = events.begin(); it != events.end();
it++)
+ for (std::list<Event*>::iterator it = events.begin(); it != events.end();
++it)
delete *it;
events.clear ();
@@ -185,7 +185,7 @@
events.push_back(new
ButtonEvent(static_cast<ButtonName>(buttons[i].first), released));
}
-
+ std::cout << "ActionAxis: " << action_axis->get_pos() << std::endl;
if (action_axis->get_pos())
if (action_axis->get_pos() > 0)
events.push_back(new AxisEvent(up));
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/input controller.cxx,1.10,1.11,
grumbel <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src/input axis_factory.cxx,1.4,1.5
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src xml_helper.cxx,1.10,1.11 xml_helper.hxx,1.5,1.6
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src/input axis_factory.cxx,1.4,1.5
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src xml_helper.cxx,1.10,1.11 xml_helper.hxx,1.5,1.6
- Index(es):