[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.2,1.3 controll
From: |
torangan |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/input controller.cxx,1.2,1.3 controller.hxx,1.2,1.3 |
Date: |
10 Jul 2002 16:16:01 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src/input
In directory dark:/tmp/cvs-serv24414
Modified Files:
controller.cxx controller.hxx
Log Message:
Added event interface
Index: controller.cxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/input/controller.cxx,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- controller.cxx 10 Jul 2002 14:06:20 -0000 1.2
+++ controller.cxx 10 Jul 2002 16:15:59 -0000 1.3
@@ -19,14 +19,17 @@
#include "../xml_helper.hxx"
#include "../pingus_error.hxx"
+#include "action_axis_event.hxx"
#include "axis.hxx"
#include "axis_factory.hxx"
#include "button.hxx"
+#include "button_event.hxx"
#include "button_factory.hxx"
#include "controller.hxx"
#include "dummy_axis.hxx"
#include "dummy_button.hxx"
#include "dummy_pointer.hxx"
+#include "move_event.hxx"
#include "pointer.hxx"
#include "pointer_factory.hxx"
Index: controller.hxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/input/controller.hxx,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- controller.hxx 10 Jul 2002 14:06:20 -0000 1.2
+++ controller.hxx 10 Jul 2002 16:15:59 -0000 1.3
@@ -20,6 +20,7 @@
#ifndef HEADER_PINGUS_INPUT_CONTROLLER_HXX
#define HEADER_PINGUS_INPUT_CONTROLLER_HXX
+#include <list>
#include <string>
#include <vector>
#include "../libxmlfwd.hxx"
@@ -28,6 +29,7 @@
{
class Axis;
class Button;
+ class Event;
class Pointer;
class Controller {
@@ -47,10 +49,14 @@
std::vector<Button*> action_buttons;
Axis* action_axis;
+
+ std::list<Event*> events;
public:
explicit Controller (const std::string& configfile);
-
+
+ std::list<Event*>& get_events ();
+
private:
void create_action_buttons(xmlNodePtr cur);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/input controller.cxx,1.2,1.3 controller.hxx,1.2,1.3,
torangan <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src/input action_axis_event.hxx,NONE,1.1 button_event.hxx,NONE,1.1 event.hxx,NONE,1.1 move_event.hxx,NONE,1.1
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src/input Makefile.am,1.11,1.12
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src/input action_axis_event.hxx,NONE,1.1 button_event.hxx,NONE,1.1 event.hxx,NONE,1.1 move_event.hxx,NONE,1.1
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src/input Makefile.am,1.11,1.12
- Index(es):