#ifndef __C_MOBILE_CURSOR_CONTROL_H_INCLUDED__ #define __C_MOBILE_CURSOR_CONTROL_H_INCLUDED__ #include "ICursorControl.h" namespace irr { namespace gui { class MobileCursorControl : public ICursorControl { public: MobileCursorControl() : CursorPos(core::position2d(0, 0)) {} virtual void setVisible(bool visible) {} virtual bool isVisible() const {return false;} virtual void setPosition(const core::position2d &pos) { setPosition(pos.X, pos.Y); } virtual void setPosition(f32 x, f32 y) { CursorPos.X = x; CursorPos.Y = y; } virtual void setPosition(const core::position2d &pos) { setPosition(pos.X, pos.Y); } virtual void setPosition(s32 x, s32 y) { CursorPos.X = x; CursorPos.Y = y; } virtual const core::position2d& getPosition() { return CursorPos; } virtual core::position2d getRelativePosition() { return core::position2d(0, 0); } virtual void setReferenceRect(core::rect* rect=0) {} private: core::position2d CursorPos; }; } } #endif