Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/event/event.h @ 5581

Last change on this file since 5581 was 5391, checked in by bensch, 19 years ago

orxonox/trunk: more gui-definitions

File size: 1.2 KB
RevLine 
[5391]1/*
2   orxonox - the future of 3D-vertical-scrollers
3
4   Copyright (C) 2004 orx
5
6   This program is free software; you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation; either version 2, or (at your option)
9   any later version.
10
11### File Specific:
12   main-programmer: Patrick Boenzli
13   co-programmer: ...
14
15   Benjamin Grauer: added SDL_ResizeEvent resize (for the GraphicsEngine)
16*/
17
[4782]18/*!
[5039]19 * @file event.h
20 * an abstract event
[5366]21 */
[4329]22
[4346]23#ifndef _EVENT_H
24#define _EVENT_H
[4329]25
[4381]26#include "sdlincl.h"
[4329]27
[4346]28//! An abstract event class
[5239]29class Event {
[4329]30
31 public:
[4346]32  Event();
[4329]33
[4454]34  int      offset;                      //!< offset in the event type array
35  int      type;                        //!< the type field
36  bool     bPressed;                    //!< is true, if the button/mouse was pressed, false if released
[4782]37
[4454]38  Uint16   x;                           //!< x coordinate
39  Uint16   y;                           //!< y coordinate
40  Sint16   xRel;                        //!< relative x movement to last point
41  Sint16   yRel;                        //!< relative y movement to last point
[4782]42
43  SDL_ResizeEvent resize;
[4329]44};
45
[4346]46#endif /* _EVENT_H */
Note: See TracBrowser for help on using the repository browser.