Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

orxonox/trunk: more gui-definitions

File size: 1.2 KB
Line 
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
18/*!
19 * @file event.h
20 * an abstract event
21 */
22
23#ifndef _EVENT_H
24#define _EVENT_H
25
26#include "sdlincl.h"
27
28//! An abstract event class
29class Event {
30
31 public:
32  Event();
33
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
37
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
42
43  SDL_ResizeEvent resize;
44};
45
46#endif /* _EVENT_H */
Note: See TracBrowser for help on using the repository browser.