IHardwareMouse

IHardwareMouseabstract

#include

Public Member Functions

virtual void Release ()=0
virtual void OnPreInitRenderer ()=0
We need to register after the creation of the device but before its init.
virtual void OnPostInitInput ()=0
We need to register after the creation of input to emulate mouse.
virtual void Event (int iX, int iY, EHARDWAREMOUSEEVENT eHardwareMouseEvent, int wheelDelta=0)=0
Call that in your WndProc on WM_MOUSEMOVE, WM_LBUTTONDOWN and WM_LBUTTONUP.
virtual void AddListener (IHardwareMouseEventListener *pHardwareMouseEventListener)=0
Add/Remove whoever is interested by the mouse cursor.
virtual void RemoveListener (IHardwareMouseEventListener *pHardwareMouseEventListener)=0
virtual bool SetExclusiveEventListener (IHardwareMouseEventListener *pHardwareMouseEventListener)=0
Prevents all other listeners from receiving events. function returns true if succesfully set.
virtual void RemoveExclusiveEventListener (IHardwareMouseEventListener *pHardwareMouseEventListener)=0
virtual IHardwareMouseEventListener * GetCurrentExclusiveEventListener ()=0
virtual void SetConfinedWnd (HWND wnd)=0
Called only in Editor when switching from editing to game mode.
virtual void SetGameMode (bool bGameMode)=0
virtual void IncrementCounter ()=0
Increment when you want to show the cursor, decrement otherwise.
virtual void DecrementCounter ()=0
virtual void GetHardwareMousePosition (float *pfX, float *pfY)=0
Standard get/set functions, mainly for Gamepad emulation purpose.
virtual void SetHardwareMousePosition (float fX, float fY)=0
virtual void GetHardwareMouseClientPosition (float *pfX, float *pfY)=0
Same as above, but relative to upper-left corner to the client area of our app.
virtual void SetHardwareMouseClientPosition (float fX, float fY)=0
virtual bool SetCursor (int idc_cursor_id)=0
Load and/or set cursor.
virtual bool SetCursor (const char *path)=0
virtual void Reset (bool bVisibleByDefault)=0
virtual void ConfineCursor (bool confine)=0
virtual void Hide (bool hide)=0
virtual void Update ()=0
virtual void Render ()=0
virtual ISystemEventListener * GetSystemEventListener ()=0

Detailed Description

Interface for managing the main OS cursor's state