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 scroll_event.hxx,NONE,1.1 event


From: torangan
Subject: [Pingus-CVS] CVS: Games/Pingus/src/input scroll_event.hxx,NONE,1.1 event.hxx,1.2,1.3 Makefile.am,1.15,1.16
Date: 11 Jul 2002 15:15:21 -0000

Update of /usr/local/cvsroot/Games/Pingus/src/input
In directory dark:/tmp/cvs-serv26494

Modified Files:
        event.hxx Makefile.am 
Added Files:
        scroll_event.hxx 
Log Message:
added scroll event


--- NEW FILE: scroll_event.hxx ---
//  $Id: scroll_event.hxx,v 1.1 2002/07/11 15:15:19 torangan Exp $
// 
//  Pingus - A free Lemmings clone
//  Copyright (C) 2000 Ingo Ruhnke <address@hidden>
//
//  This program is free software; you can redistribute it and/or
//  modify it under the terms of the GNU General Public License
//  as published by the Free Software Foundation; either version 2
//  of the License, or (at your option) any later version.
//
//  This program is distributed in the hope that it will be useful,
//  but WITHOUT ANY WARRANTY; without even the implied warranty of
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//  GNU General Public License for more details.
// 
//  You should have received a copy of the GNU General Public License
//  along with this program; if not, write to the Free Software
//  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

#ifndef HEADER_PINGUS_INPUT_SCROLL_EVENT_HXX
#define HEADER_PINGUS_INPUT_SCROLL_EVENT_HXX

#include "event.hxx"

namespace Input {

  class ScrollEvent : public Event {
  
    public:
      float x_delta;
      float y_delta;
           
    public:
      ScrollEvent (float x_delta_, float y_delta_) : x_delta(x_delta_), 
y_delta(y_delta_) { }
      
      EventType get_type () { return ScrollEventType; }
  };

}

#endif

/* EOF */

Index: event.hxx
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/input/event.hxx,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- event.hxx   10 Jul 2002 17:22:11 -0000      1.2
+++ event.hxx   11 Jul 2002 15:15:19 -0000      1.3
@@ -22,7 +22,7 @@
 
 namespace Input {
 
-  enum EventType { ButtonEventType, PointerEventType, AxisEventType };
+  enum EventType { ButtonEventType, PointerEventType, AxisEventType, 
ScrollEventType };
 
   class Event {
     public:

Index: Makefile.am
===================================================================
RCS file: /usr/local/cvsroot/Games/Pingus/src/input/Makefile.am,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- Makefile.am 11 Jul 2002 14:51:10 -0000      1.15
+++ Makefile.am 11 Jul 2002 15:15:19 -0000      1.16
@@ -51,6 +51,7 @@
        pointer_factory.hxx pointer_factory.cxx \
        pointer_scroller.hxx pointer_scroller.cxx \
        scroller.hxx \
+       scroll_event.hxx \
        triple_button.hxx triple_button.cxx
 
 # EOF #




reply via email to

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