#include <Mouse.h>
Inheritance diagram for CMouse:
Public Member Functions | |
bool | IsButtonDown (UINT uiButtonIndex) |
bool | IsButtonUp (UINT uiButtonIndex) |
UINT | GetKeyState (UINT uiKeyIndex) |
tVERTEX2d & | GetCursorPos () |
tVERTEX2d & | GetPrevCursorPos () |
void | SetCursorPos (int x, int y) |
virtual bool | IsOfType (eEntityType eType) |
Protected Member Functions | |
virtual int | Create () |
virtual void | Destroy () |
virtual UINT | Poll () |
Protected Attributes | |
tVERTEX2d | m_CursorPos |
tVERTEX2d | m_PrevCursorPos |
tVERTEX2d | m_CursorSpeed |
This class provides an easy and clear shell for ANY mouse device
Definition at line 12 of file Mouse.h.
|
Method details:
Implements CInputDevice. Definition at line 15 of file Mouse.cpp. Referenced by CInputEngine::Create(). |
|
Method details: Destroys the device Implements CInputDevice. |
|
Method details:
References m_CursorPos. Referenced by CGUIMenuEntry::Draw(), CGUIElement::OnMouseMove(), CGUIMenuEntry::PointInChildRects(), CGUIScrollBar::ProcessMessage(), and CGUI::Update(). |
|
Method details:
Reimplemented from CInputDeviceState. Definition at line 62 of file Mouse.cpp. Referenced by IsButtonDown(), and IsButtonUp(). |
|
Method details:
References m_PrevCursorPos. Referenced by CGUIElement::OnMouseMove(), CGUIScrollBar::ProcessMessage(), and CGUI::Update(). |
|
Method details:
References GetKeyState(). Referenced by CGUIButton::GetCurrentAnimation(), and CGUI::Update(). |
|
Method details:
References GetKeyState(). Referenced by CGUI::Update(). |
|
Method details: This is an implementation of Custom RTTI Reimplemented from CInputDevice. Definition at line 103 of file Mouse.cpp. References CEntity::IsOfType(). |
|
Method details:
Implements CInputDeviceState. Definition at line 32 of file Mouse.cpp. References m_CursorPos, m_PrevCursorPos, tVERTEX2d::x, and tVERTEX2d::y. Referenced by CInputEngine::Poll(). |
|
Method details: @param x,y - New (updated) coordinates for the mouseDefinition at line 70 of file Mouse.cpp. References m_CursorPos, tVERTEX2d::x, and tVERTEX2d::y. |
|
Mouse cursor position Definition at line 77 of file Mouse.h. Referenced by GetCursorPos(), Poll(), and SetCursorPos(). |
|
Mouse cursor speed (dx & dy) Definition at line 80 of file Mouse.h. |
|
Previous mouse cursor position Definition at line 78 of file Mouse.h. Referenced by GetPrevCursorPos(), and Poll(). |