|
static bool | allButtonsDown (const Button buttons, const bool synchron=true) |
| Returns whether all specified buttons of the mouse are currently pushed (down) or not. More...
|
|
static bool | oneButtonDown (const Button buttons, const bool synchron=true) |
| Returns whether at least one button of the specified buttons of the mouse is currently pushed (down) or not. More...
|
|
static bool | isButtonDown (const Button button, const bool synchron=true) |
| Returns wheater exactly one (specified button) is currently pushed (down) or not. More...
|
|
static Button | currentMouseButtonState (const bool synchron=true) |
| Returns the current mouse button state for the left, middle and right mouse button. More...
|
|
static VectorI2 | screenPosition () |
| Returns the current position of the mouse (cursor) in screen coordinates. More...
|
|
|
enum | Button {
BUTTON_NONE = 0
, BUTTON_LEFT = (1 << 0)
, BUTTON_MIDDLE = (1 << 1)
, BUTTON_RIGHT = (1 << 2)
,
BUTTON_LAST_UNIQUE_VALUE = (1 << 2)
} |
| Definition of individual mouse buttons. More...
|
|
static bool | allButtonsDown (const Button buttons, const bool synchron=true) |
| Returns whether all specified buttons of the mouse are currently pushed (down) or not. More...
|
|
static bool | oneButtonDown (const Button buttons, const bool synchron=true) |
| Returns whether at least one button of the specified buttons of the mouse is currently pushed (down) or not. More...
|
|
static bool | isButtonDown (const Button button, const bool synchron=true) |
| Returns whether exactly one (specified button) is currently pushed (down) or not. More...
|
|
static Button | currentMouseButtonState (const bool synchron=true) |
| Returns the current mouse button state for the left, middle and right mouse button. More...
|
|
static VectorI2 | screenPosition (const VectorI2 &invalidPosition=VectorI2(NumericT< int >::minValue(), NumericT< int >::minValue())) |
| Returns the current position of the mouse/cursor in screen coordinates. More...
|
|
static bool | isButtonDownWindows (const Button button, const bool synchron=true) |
| Returns whether exactly one (specified button) is currently pushed (down) or not (specialization for Windows). More...
|
|
static bool | keyStateWindows (const int nVirtualKey, const bool synchron) |
| Returns whether exactly one (specified key) is currently pushed (down) or not. More...
|
|
static VectorI2 | screenPositionWindows (const VectorI2 &invalidPosition=VectorI2(NumericT< int >::minValue(), NumericT< int >::minValue())) |
| Returns the current position of the mouse/cursor in screen coordinates (specialization for Windows). More...
|
|
static bool | isButtonDownApple (const Button button, const bool synchron=true) |
| Returns whether exactly one (specified button) is currently pushed (down) or not (specialization for Apple platforms). More...
|
|
static VectorI2 | screenPositionApple (const VectorI2 &invalidPosition=VectorI2(NumericT< int >::minValue(), NumericT< int >::minValue())) |
| Returns the current position of the mouse/cursor in screen coordinates (specialization for Apple platforms). More...
|
|
This class implements mouse functionalities.