|
VGamepad PC
The PC app for the virtual game controller.
|
Mouse input injector using platform-specific APIs. More...
#include <mouseSim.hpp>
Public Member Functions | |
| MouseInjector () | |
| ~MouseInjector () | |
| MouseInjector (const MouseInjector &)=delete | |
| MouseInjector & | operator= (const MouseInjector &)=delete |
| MouseInjector (MouseInjector &&)=delete | |
| MouseInjector & | operator= (MouseInjector &&)=delete |
| void | moveMouseToPosition (int x, int y) |
| Move the mouse to the specified coordinates. | |
| void | moveMouseByOffset (int x, int y) |
| Move the mouse by the specified offset. | |
| void | singleClick () |
| Simulate a single left click. | |
| void | doubleClick () |
| void | leftClick () |
| Simulate a left click. | |
| void | rightClick () |
| void | middleClick () |
| void | leftDown () |
| void | leftUp () |
| void | rightDown () |
| void | rightUp () |
| void | middleDown () |
| void | middleUp () |
| void | scrollUp () |
| void | scrollDown () |
Static Private Attributes | |
| static constexpr unsigned int | ClickHoldTime = 10 |
Mouse input injector using platform-specific APIs.
Platform-specific implementations:
Both platforms use instance methods for consistent interface.
| MouseInjector::MouseInjector | ( | ) |
| MouseInjector::~MouseInjector | ( | ) |
|
delete |
|
delete |
| void MouseInjector::doubleClick | ( | ) |
| void MouseInjector::leftClick | ( | ) |
Simulate a left click.
| void MouseInjector::leftDown | ( | ) |
| void MouseInjector::leftUp | ( | ) |
| void MouseInjector::middleClick | ( | ) |
| void MouseInjector::middleDown | ( | ) |
| void MouseInjector::middleUp | ( | ) |
| void MouseInjector::moveMouseByOffset | ( | int | x, |
| int | y ) |
Move the mouse by the specified offset.
| x | from 0 to screen width |
| y | from 0 to screen height |
| void MouseInjector::moveMouseToPosition | ( | int | x, |
| int | y ) |
Move the mouse to the specified coordinates.
| x | from 0 to screen width |
| y | from 0 to screen height |
|
delete |
|
delete |
| void MouseInjector::rightClick | ( | ) |
| void MouseInjector::rightDown | ( | ) |
| void MouseInjector::rightUp | ( | ) |
| void MouseInjector::scrollDown | ( | ) |
| void MouseInjector::scrollUp | ( | ) |
| void MouseInjector::singleClick | ( | ) |
Simulate a single left click.
|
staticconstexprprivate |