Platform_Input_MouseDevice Class Reference
[Platform]
Platform independent abstraction of a mouse device.
More...
Inheritance diagram for Platform_Input_MouseDevice:

Public Member Functions | |
| virtual | ~Platform_Input_MouseDevice () |
| virtual void | GetPosition (float &x, float &y) const =0 |
| virtual bool | IsLeftButtonDown () const =0 |
| virtual bool | IsRightButtonDown () const =0 |
Detailed Description
Platform independent abstraction of a mouse device.Provides basic acces to the mouse - position and button states
Definition at line 19 of file Platform_Input_MouseDevice.h.
Constructor & Destructor Documentation
| virtual Platform_Input_MouseDevice::~Platform_Input_MouseDevice | ( | ) | [virtual] |
Destructor
Definition at line 25 of file Platform_Input_MouseDevice.h.
Member Function Documentation
| virtual void Platform_Input_MouseDevice::GetPosition | ( | float & | x, | |
| float & | y | |||
| ) | const [pure virtual] |
Retrieves the position of the mouse pointer. This position is in coordinates of the window, and may need to be transformed to correspond to the area of the current back buffer being presented using Platform_Screen.
- Parameters:
-
x Reference to the variable to store the x-position in y Reference to the variable to store the y-position in
Implemented in Platform_NULL_Input_MouseDevice, and Platform_Win32_Input_MouseDevice.
| virtual bool Platform_Input_MouseDevice::IsLeftButtonDown | ( | ) | const [pure virtual] |
Retrieves the status of the left mouse button
- Returns:
- True if the left mouse button is held down, false if it isn't
Implemented in Platform_NULL_Input_MouseDevice, and Platform_Win32_Input_MouseDevice.
| virtual bool Platform_Input_MouseDevice::IsRightButtonDown | ( | ) | const [pure virtual] |
Retrieves the status of the right mouse button
- Returns:
- True if the right mouse button is held down, false if it isn't
Implemented in Platform_NULL_Input_MouseDevice, and Platform_Win32_Input_MouseDevice.
Reproduction/republishing of any material on this site without permission is strictly prohibited.
