Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4350 in orxonox.OLD


Ignore:
Timestamp:
May 28, 2005, 12:27:29 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: event class members defined

Location:
orxonox/trunk/src/util/event
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/util/event/event.h

    r4346 r4350  
    77#ifndef _EVENT_H
    88#define _EVENT_H
     9
     10#define CMD_LENGHT 16
    911
    1012#include "base_object.h"
     
    1820  virtual ~Event();
    1921
     22
     23 private:
     24  int offset;                      //!< offset in the event type array
     25  char cmd[CMD_LENGHT];            //!< the command delivered
     26  bool bPressed;                   //!< is true, if the button/mouse was pressed, false if released
     27       
     28  Uint16 x, y;                     //!< x and y coordinates
     29  Sint16 xRel, yRel;               //!< relative x and y movement to last point
     30
    2031};
    2132
  • orxonox/trunk/src/util/event/event_handler.cc

    r4346 r4350  
    1717
    1818#include "event_handler.h"
     19#include "event_listener.h"
     20
     21#include "SDL_keysym.h"
    1922
    2023using namespace std;
     
    2730{
    2831   this->setClassID(CL_EVENT_HANDLER, "EventHandler");
     32
     33   this->listeners = new EventListener*[SDLK_LAST];
    2934}
    3035
  • orxonox/trunk/src/util/event/event_handler.h

    r4346 r4350  
    3030  virtual ~EventHandler(void);
    3131
     32  void setState(elState state);
     33
    3234  void subscribeListener(EventListener* el, elState state);
    3335  void unsubscribeListener(EventListener* el, elState state);
Note: See TracChangeset for help on using the changeset viewer.