pingus-cvs
[Top][All Lists]
Advanced

[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;
   };
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]