Changeset 973 for code/branches/input/src/orxonox/core/InputHandler.h
- Timestamp:
- Apr 3, 2008, 10:23:37 AM (16 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
code/branches/input/src/orxonox/core/InputHandler.h
r971 r973 28 28 /** 29 29 @file 30 @brief InputHandlerBuffer class declaration30 @brief Different implementations of input processing. 31 31 */ 32 32 33 #ifndef _InputHandlerBase_H__ 34 #define _InputHandlerBase_H__ 33 #ifndef _InputHandler_H__ 34 #define _InputHandler_H__ 35 36 #include <OIS/OIS.h> 35 37 36 38 #include "CorePrereqs.h" … … 39 41 { 40 42 /** 41 @brief 43 @brief Captures mouse and keyboard input and distributes it to the 44 GUI. 42 45 */ 43 class InputHandlerBase 46 class _CoreExport InputHandlerGUI 47 : public OIS::KeyListener, public OIS::MouseListener 44 48 { 49 public: 50 InputHandlerGUI (); 51 ~InputHandlerGUI(); 52 53 private: 54 // input events 55 bool mousePressed (const OIS::MouseEvent &arg, OIS::MouseButtonID id); 56 bool mouseReleased(const OIS::MouseEvent &arg, OIS::MouseButtonID id); 57 bool mouseMoved (const OIS::MouseEvent &arg); 58 bool keyPressed (const OIS::KeyEvent &arg); 59 bool keyReleased (const OIS::KeyEvent &arg); 45 60 }; 61 62 63 /** 64 @brief Captures mouse and keyboard input while in the actual game mode. 65 Manages the key bindings. 66 */ 67 class _CoreExport InputHandlerGame 68 : public OIS::KeyListener, public OIS::MouseListener 69 { 70 public: 71 InputHandlerGame (); 72 ~InputHandlerGame(); 73 74 private: 75 // input events 76 bool mousePressed (const OIS::MouseEvent &arg, OIS::MouseButtonID id); 77 bool mouseReleased(const OIS::MouseEvent &arg, OIS::MouseButtonID id); 78 bool mouseMoved (const OIS::MouseEvent &arg); 79 bool keyPressed (const OIS::KeyEvent &arg); 80 bool keyReleased (const OIS::KeyEvent &arg); 81 }; 82 46 83 } 47 84 48 #endif /* _InputHandler Base_H__ */85 #endif /* _InputHandler_H__ */
Note: See TracChangeset
for help on using the changeset viewer.