[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src/input button.hxx,1.1,1.2
From: |
torangan |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src/input button.hxx,1.1,1.2 |
Date: |
4 Jul 2002 10:52:01 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src/input
In directory dark:/tmp/cvs-serv26661
Modified Files:
button.hxx
Log Message:
Changed interface
Index: button.hxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/input/button.hxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- button.hxx 3 Jul 2002 16:53:57 -0000 1.1
+++ button.hxx 4 Jul 2002 10:51:59 -0000 1.2
@@ -20,23 +20,14 @@
#ifndef HEADER_PINGUS_INPUT_BUTTON_HXX
#define HEADER_PINGUS_INPUT_BUTTON_HXX
-#include <queue>
-
namespace Input
{
class Button
{
public:
- enum Event { BUTTON_PRESSED, BUTTON_RELEASED, BUTTON_CLICKED,
BUTTON_DOUBLECLICKED };
- protected:
- std::queue<enum Event> events;
-
- public:
- Event peek_event () { return events.front (); }
- Event pop_event () { Event e = peek_event (); events.pop (); return e; }
-
- void update (float delta);
- bool is_pressed ();
+
+ virtual bool is_pressed () =0;
+ virtual void update (float) =0;
};
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src/input button.hxx,1.1,1.2,
torangan <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/src/editor editor.cxx,1.18,1.19 editorobj.cxx,1.3,1.4 editorobj.hxx,1.10,1.11 entrance_window.cxx,1.2,1.3 groundpiece_window.cxx,1.6,1.7 property_window.cxx,1.7,1.8 property_window.hxx,1.3,1.4
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src/input button.cxx,1.1,NONE
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/src/editor editor.cxx,1.18,1.19 editorobj.cxx,1.3,1.4 editorobj.hxx,1.10,1.11 entrance_window.cxx,1.2,1.3 groundpiece_window.cxx,1.6,1.7 property_window.cxx,1.7,1.8 property_window.hxx,1.3,1.4
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src/input button.cxx,1.1,NONE
- Index(es):