4 #define L_PRESSED(x) (((x)->m_dims2.rgbButtons[0]&0x80)!=0) 5 #define R_PRESSED(x) (((x)->m_dims2.rgbButtons[1]&0x80)!=0) 6 #define M_PRESSED(x) (((x)->m_dims2.rgbButtons[2]&0x80)!=0) 8 #define SAMPLE_BUFFER_SIZE 1024 27 virtual HRESULT ReadImmediateData();
28 virtual void Update();
41 virtual bool IsLocked();
43 virtual void SetLock(
bool bLock);;
45 virtual void UpdateX(
int delta);
46 virtual void UpdateY(
int delta);
50 virtual void PushMouseEvent(UINT uMsg, WPARAM wParam, LPARAM lParam);
54 virtual void SetCapture(
CGUIBase* obj);
55 virtual void ReleaseCapture(
CGUIBase* obj);
57 virtual void ReleaseCapture();
75 virtual void SetMouseButtonSwapped(
bool bSwapped);
79 virtual void SetDeviceCursorPos(
int x,
int y);
92 bool m_bLastMouseReset;
101 MSG m_buffered_mouse_msgs[SAMPLE_BUFFER_SIZE / 2];
102 int m_buffered_mouse_msgs_count;
104 bool m_isTouchInputting;
Definition: RenderCoreOpenGL.h:38
virtual bool IsUseWindowsMessage()
whether to use window message for buffered mouse event.
Definition: GUIMouseVirtual.cpp:45
bool m_bSwapMouseButton
swap left/right button.
Definition: GUIMouseVirtual.h:91
Definition: EventBinding.h:22
different physics engine has different winding order.
Definition: EventBinding.h:32
virtual int GetBufferedMessageCount()
check if there is any unprocessed buffered window mouse message.
Definition: GUIMouseVirtual.cpp:287
virtual void SetMousePosition(int x, int y)
only change m_x, m_y, which is pretty fast.
Definition: GUIMouseVirtual.cpp:273
virtual HRESULT ReadBufferedData()
Definition: GUIMouseVirtual.cpp:155
virtual void ResetLastMouseState()
reset mouse to make the mouse delta correct in the next frame.
Definition: GUIMouseVirtual.cpp:292
virtual int GetCursorSize()
get the cursor size in pixels
Definition: GUIMouseVirtual.h:71
virtual void ShowCursor(bool bShowCursor)
true to show the cursor.
Definition: GUIMouseVirtual.h:65
base object for all 2D GUI objects (1) 2D GUI object are not tested against view frustum, instead it is controlled by visibility tag automatically or through user input.
Definition: GUIBase.h:54
virtual bool IsMouseButtonSwapped()
swap left/right button.
Definition: GUIMouseVirtual.cpp:251
virtual void SetUseWindowsMessage(bool bUseWinMsg)
whether to use window message for buffered mouse event.
Definition: GUIMouseVirtual.cpp:50
virtual int GetMouseXDeltaSteps()
the current mouse X delta in steps, such as -2,-1,0,1,2
Definition: GUIMouseVirtual.cpp:97
virtual void GetDeviceCursorPos(int &x, int &y)
get current cursor position.
Definition: GUIMouseVirtual.cpp:261
bool m_bUseWindowMessage
whether to use window message for buffered mouse event.
Definition: GUIMouseVirtual.h:89
virtual int GetMouseYDeltaSteps()
the current mouse Y delta in steps, such as -2,-1,0,1,2
Definition: GUIMouseVirtual.cpp:92
virtual int GetMouseWheelDeltaSteps()
the current mouse wheel delta in steps, such as -2,-1,0,1,2
Definition: GUIMouseVirtual.cpp:102
base class for GUI mouse
Definition: GUIMouseVirtual.h:14
virtual void PushMouseEvent(UINT uMsg, WPARAM wParam, LPARAM lParam)
push a standard windows mouse event to the buffer for processing in the next frame move...
Definition: GUIMouseVirtual.cpp:27
virtual void SetLock(bool bLock)
true to lock the mouse at its current location
Definition: GUIMouseVirtual.cpp:60
MOUSE_KEY_STD
this is just traditional mouse key mapping.
Definition: GUIMouseVirtual.h:21
virtual void ForceShowCursor(bool bShow)
Force the device to show its cursor.
Definition: GUIMouseVirtual.h:68
Definition: RenderCoreOpenGL.h:19