SCV  4.2.1
Simple Components for Visual
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
KeyEvent.h
Go to the documentation of this file.
1 #ifndef __SCV_KEY_EVENT_H__
2 #define __SCV_KEY_EVENT_H__
3 
4 namespace scv {
5 
7 struct KeyEvent {
8  enum State { UP, DOWN };
9 
10  KeyEvent(int key, int mod, bool special, KeyEvent::State state);
11 
12  std::string getKeyString() const;
13  bool operator==(const KeyEvent& rhs);
14 
16  const bool special;
18  const int keycode;
20  const int modifiers;
23 };
24 
25 } // namespace scv
26 
27 #endif // __SCV_KEY_EVENT_H__