Changeset 3291 for code/branches/core4/src/core/input/Mouse.h
- Timestamp:
- Jul 14, 2009, 11:50:47 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core4/src/core/input/Mouse.h
r3286 r3291 31 31 32 32 #include "InputPrereqs.h" 33 33 34 #include "InputDevice.h" 35 #include "core/WindowEventListener.h" 34 36 35 37 namespace orxonox … … 53 55 : public InputDeviceTemplated<MouseTraits> 54 56 , public OIS::MouseListener 57 , public WindowEventListener 55 58 { 56 59 friend class InputDeviceTemplated<MouseTraits>; … … 60 63 public: 61 64 //! Only sets the clipping size. Initialising is done in the base class. 62 Mouse(unsigned int id, OIS::InputManager* oisInputManager , unsigned int windowWidth, unsigned int windowHeight);65 Mouse(unsigned int id, OIS::InputManager* oisInputManager); 63 66 ~Mouse() { } 64 67 65 /**66 @brief67 Adjusts the mouse window metrics.68 69 This method has to be called every time the size of the window changes.70 */71 void setMouseClipping(unsigned int width, unsigned int height);72 // Returns the width of the mouse window73 unsigned int getClippingWidth() const;74 // Returns the height of the mouse window75 unsigned int getClippingHeight() const;76 77 // HACK!78 static void setMouseClipping_s(unsigned int width, unsigned int height)79 { instancePointer_s->setMouseClipping(width, height); }80 void setConfigValues() { }81 68 #ifdef ORXONOX_PLATFORM_LINUX 82 // HACK!83 69 // TODO: Make this a feature rather than a hack 84 staticvoid grabMouse();85 staticvoid ungrabMouse();70 void grabMouse(); 71 void ungrabMouse(); 86 72 #endif 87 73 … … 103 89 bool mouseMoved(const OIS::MouseEvent &arg); 104 90 91 void windowResized(unsigned int newWidth, unsigned int newHeight); 92 105 93 // Returns the class name as string 106 94 static std::string getClassNameImpl() { return "Mouse"; } 107 108 // HACK:109 static Mouse* instancePointer_s;110 95 }; 111 96 }
Note: See TracChangeset
for help on using the changeset viewer.