The Mouse class provide information about mouse input.
More...
#include <jmInput.h>
The Mouse class provide information about mouse input.
◆ GetX()
Returns the x coordinate of the mouse cursor on screen.
◆ GetY()
Returns the y coordinate of the mouse cursor on screen.
◆ GetPos()
Returns the position of the mouse cursor on screen.
◆ IsPositionChanged()
bool IsPositionChanged |
( |
| ) |
|
|
inline |
Returns true if the position of the cursor changed; otherwise returns false.
◆ GetWheelX()
Returns the value of horizontal wheel.
◆ GetWheelY()
Returns the value of vertical wheel.
◆ GetWheel()
Returns the values of vertical and horizonatal wheel.
◆ IsWheelXChanged()
Returns true if the value of horizontal wheel changed; otherwise returns false.
◆ IsWheelYChanged()
Returns true if the value of horizontal wheel changed; otherwise returns false.
◆ IsButtonPressed()
Returns true if the given *_mouse button* is pressed; otherwise returns false.
◆ IsButtonDown()
Returns true if the given *_mouse button* is hold down; otherwise returns false.
◆ IsButtonReleased()
Returns true if the given *_mouse button* is released; otherwise returns false.
◆ SetCursorSprite()
◆ ClearCursorSprite()
void ClearCursorSprite |
( |
| ) |
|
Clear the cursor sprite.
This function will hide the cursor sprite and set its link pointer to nullptr.
◆ GetCursorSprite()
Returns the cursor sprite if exists; otherwise returns nullptr.
◆ Reset()
Reset all buttons states.
The documentation for this class was generated from the following files:
- C:/Development/JugiMapProject/JugiMapFRM/framework_c++/jugimap/jmInput.h
- C:/Development/JugiMapProject/JugiMapFRM/framework_c++/jugimap/jmInput.cpp