home *** CD-ROM | disk | FTP | other *** search
- #ifndef _MOUSE
- #define _MOUSE
-
- #include <d3dx9.h>
- #include <dinput.h>
- #include "debug.h"
- #include "intpoint.h"
- #include "mesh.h"
-
- class MOUSE : public INTPOINT{
- friend class CAMERA;
- public:
- MOUSE();
- ~MOUSE();
- void InitMouse(IDirect3DDevice9* Dev, HWND wnd);
- bool ClickLeft();
- bool ClickRight();
- bool WheelUp();
- bool WheelDown();
- bool Over(RECT dest);
- bool PressInRect(RECT dest);
- void Update();
- void Paint();
- void DisableInput(int millisec);
-
- float m_fSpeed;
- int m_iType;
- INTPOINT m_mappos;
-
- private:
- IDirect3DDevice9* m_pDevice;
- LPDIRECTINPUTDEVICE8 m_pMouseDevice;
- DIMOUSESTATE m_mouseState;
- IDirect3DTexture9* m_pMouseTexture;
- LPD3DXSPRITE m_pSprite;
- RECT m_viewport;
- DWORD m_dwBlock;
- };
-
-
- #endif