Oxygine  1
2g game engine
KeyEvent.h
1 #pragma once
2 #include "Event.h"
3 
4 #ifdef KEY_EVENT
5 #undef KEY_EVENT
6 #endif
7 
8 namespace oxygine
9 {
11  class KeyEvent : public Event
12  {
13  public:
14  enum KEY_EVENT
15  {
16  KEY_DOWN = sysEventID('K', 'E', 'D'),
17  KEY_UP = sysEventID('K', 'E', 'U')
18  };
19 
20  SDL_KeyboardEvent* data;
21  KeyEvent(KEY_EVENT k, SDL_KeyboardEvent* d) : Event(k), data(d) {}
22  };
23 }
Definition: Event.h:10
Definition: KeyEvent.h:11
–oxgl-end–!
Definition: Actor.h:14