Defines the interface that a Mouse implementation must implement. More...
#include <Input/Mouse.h>
Inherited by SDLMouse.
Public Member Functions | |
virtual bool | ButtonPressed (MouseButton button, Point2i *pos=NULL) const =0 |
Determines if the given mouse button was just pressed. | |
virtual bool | ButtonReleased (MouseButton button, Point2i *pos=NULL) const =0 |
Determines if the given mouse button was just released. | |
virtual bool | ButtonDown (MouseButton button) const =0 |
Determines if the given mouse button is down. | |
virtual bool | WheelUp () const =0 |
Determines if the mouse wheel has been moved up. | |
virtual bool | WheelDown () const =0 |
Determines if the mouse wheel has been moved down. | |
virtual bool | HasFocus () const =0 |
Determines if the mouse has screen focus. | |
virtual bool | InFixedPositionMode () const =0 |
Determines if the mouse is in fixed position mode. | |
virtual Point2i | GetPos () const =0 |
Gets the current position of the mouse. | |
virtual Point2f | GetPosNorm () const =0 |
Gets the mouse position in normalized screen coordinates. | |
virtual Point2i | GetMoveDelta () const =0 |
Gets the amount the mouse has moved since the last update. |
Defines the interface that a Mouse implementation must implement.
virtual bool IMouse::ButtonDown | ( | MouseButton | button | ) | const [pure virtual] |
Determines if the given mouse button is down.
[in] | button | the MouseButton to check. |
Implemented in SDLMouse.
virtual bool IMouse::ButtonPressed | ( | MouseButton | button, | |
Point2i * | pos = NULL | |||
) | const [pure virtual] |
Determines if the given mouse button was just pressed.
[in] | button | the MouseButton to check. |
[in] | pos | pointer that will hold the position where the button was pressed. Defaults to NULL. |
Implemented in SDLMouse.
virtual bool IMouse::ButtonReleased | ( | MouseButton | button, | |
Point2i * | pos = NULL | |||
) | const [pure virtual] |
Determines if the given mouse button was just released.
[in] | button | the MouseButton to check. |
[in] | pos | pointer that will hold the position where the button was released. Defaults to NULL. |
Implemented in SDLMouse.
virtual Point2i IMouse::GetMoveDelta | ( | ) | const [pure virtual] |
Gets the amount the mouse has moved since the last update.
Implemented in SDLMouse.
virtual Point2i IMouse::GetPos | ( | ) | const [pure virtual] |
Gets the current position of the mouse.
Implemented in SDLMouse.
virtual Point2f IMouse::GetPosNorm | ( | ) | const [pure virtual] |
Gets the mouse position in normalized screen coordinates.
Implemented in SDLMouse.
virtual bool IMouse::HasFocus | ( | ) | const [pure virtual] |
Determines if the mouse has screen focus.
Implemented in SDLMouse.
virtual bool IMouse::InFixedPositionMode | ( | ) | const [pure virtual] |
Determines if the mouse is in fixed position mode.
Implemented in SDLMouse.
virtual bool IMouse::WheelDown | ( | ) | const [pure virtual] |
Determines if the mouse wheel has been moved down.
Implemented in SDLMouse.
virtual bool IMouse::WheelUp | ( | ) | const [pure virtual] |
Determines if the mouse wheel has been moved up.
Implemented in SDLMouse.