Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

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

File size: 1.1 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
[5786]29struct Event {
[4454]30  int      type;                        //!< the type field
31  bool     bPressed;                    //!< is true, if the button/mouse was pressed, false if released
[4782]32
[4454]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
[4782]37
38  SDL_ResizeEvent resize;
[4329]39};
40
[4346]41#endif /* _EVENT_H */
Note: See TracBrowser for help on using the repository browser.