Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/powerups/src/lib/event/event.h @ 6782

Last change on this file since 6782 was 5786, checked in by bensch, 19 years ago

orxonox/trunk: key-repeat in the Shell is smoother now

File size: 1.1 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
29struct Event {
30  int      type;                        //!< the type field
31  bool     bPressed;                    //!< is true, if the button/mouse was pressed, false if released
32
33  Uint16   x;                           //!< x coordinate
34  Uint16   y;                           //!< y coordinate
35  Sint16   xRel;                        //!< relative x movement to last point
36  Sint16   yRel;                        //!< relative y movement to last point
37
38  SDL_ResizeEvent resize;
39};
40
41#endif /* _EVENT_H */
Note: See TracBrowser for help on using the repository browser.