[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/gui gui_manager.cxx,1.9,1.10
From: |
torangan |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/gui gui_manager.cxx,1.9,1.10 |
Date: |
15 Aug 2002 10:57:41 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src/gui
In directory dark:/tmp/cvs-serv22988
Modified Files:
gui_manager.cxx
Log Message:
added code to handle AxisEvent
Index: gui_manager.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/gui/gui_manager.cxx,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- gui_manager.cxx 13 Aug 2002 18:44:50 -0000 1.9
+++ gui_manager.cxx 15 Aug 2002 10:57:39 -0000 1.10
@@ -21,6 +21,7 @@
#include <vector>
#include <list>
#include "../input/event.hxx"
+#include "../input/axis_event.hxx"
#include "../input/button_event.hxx"
#include "../input/pointer_event.hxx"
#include "../game_delta.hxx"
@@ -203,6 +204,13 @@
break;
}
+ case Input::AxisEventType:
+ {
+ AxisEvent* event = dynamic_cast<AxisEvent*>(*i);
+ std::cout << "GUIManager: AxisEvent: " << event->dir << std::endl;
+ break;
+ }
+
default:
std::cout << "GUIManager: unhandled event type " << (*i)->get_type()
<< std::endl;
break;
@@ -214,12 +222,14 @@
GUIManager::add (Component* c, bool delete_component)
{
components.push_back(c);
+ if(delete_component);
}
void
GUIManager::remove (Component* c)
{
/* components.erase(c); */
+ if(c);
}
Component*
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/gui gui_manager.cxx,1.9,1.10,
torangan <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src/input button_axis.cxx,1.5,1.6 controller.cxx,1.9,1.10 joystick_axis.cxx,1.5,1.6 mouse_axis.cxx,1.3,1.4
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src/input axis_factory.cxx,1.4,1.5
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src/input button_axis.cxx,1.5,1.6 controller.cxx,1.9,1.10 joystick_axis.cxx,1.5,1.6 mouse_axis.cxx,1.3,1.4
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src/input axis_factory.cxx,1.4,1.5
- Index(es):