Ocular Engine
InputTranslator.hpp
1 
17 #ifndef __H__OCULAR_EDITOR_INPUT_TRANSLATOR__H__
18 #define __H__OCULAR_EDITOR_INPUT_TRANSLATOR__H__
19 
20 #include "Input/Keys.hpp"
21 
22 //------------------------------------------------------------------------------------------
23 
24 class QEvent;
25 
30 namespace Ocular
31 {
36  namespace Editor
37  {
43  {
44  public:
45 
46  static bool TranslateKeyPress(QEvent* event);
47  static bool TranslateKeyRelease(QEvent* event);
48  static bool TranslateMousePress(QEvent* event);
49  static bool TranslateMouseRelease(QEvent* event);
50  static bool TranslateMouseMove(QEvent* event);
51 
52  protected:
53 
54  static Core::KeyboardKeys ConvertKey(int32_t key);
55  static Core::MouseButtons ConvertButton(int32_t button);
56 
57  private:
58  };
59  }
63 }
68 //------------------------------------------------------------------------------------------
69 
70 #endif
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
Translates QT input events into Ocular input events.
Definition: InputTranslator.hpp:42