![]() |
AntiMicroX
|
Base class for input event handlers. More...
#include <baseeventhandler.h>
Public Member Functions | |
| BaseEventHandler (QObject *parent=nullptr) | |
| virtual | ~BaseEventHandler () |
| virtual bool | init ()=0 |
| virtual bool | cleanup ()=0 |
| virtual void | sendKeyboardEvent (JoyButtonSlot *slot, bool pressed)=0 |
| virtual void | sendMouseButtonEvent (JoyButtonSlot *slot, bool pressed)=0 |
| virtual void | sendMouseEvent (int xDis, int yDis)=0 |
| Move cursor to selected relative location (deltax delaty) | |
| virtual void | sendMouseAbsEvent (int xDis, int yDis, int screen) |
| Move cursor to selected absolute location (x, y) on selected display. | |
| virtual void | sendMouseSpringEvent (int xDis, int yDis, int width, int height) |
| Do nothing by default. Useful for child classes to define behavior. | |
| virtual void | sendTextEntryEvent (QString maintext) |
| virtual QString | getName ()=0 |
| virtual QString | getIdentifier ()=0 |
| virtual void | printPostMessages () |
| Do nothing by default. Allow child classes to specify text to output to a text stream. | |
| QString | getErrorString () |
Protected Attributes | |
| QString | lastErrorString |
Base class for input event handlers.
It manages mouse movements and keyboard strokes
|
explicit |
|
virtual |
Implemented in WinVMultiEventHandler, UInputEventHandler, WinSendInputEventHandler, and XTestEventHandler.
| QString BaseEventHandler::getErrorString | ( | ) |
Implemented in WinVMultiEventHandler, UInputEventHandler, WinSendInputEventHandler, and XTestEventHandler.
Implemented in WinVMultiEventHandler, UInputEventHandler, WinSendInputEventHandler, and XTestEventHandler.
Implemented in WinVMultiEventHandler, UInputEventHandler, WinSendInputEventHandler, and XTestEventHandler.
|
virtual |
Do nothing by default. Allow child classes to specify text to output to a text stream.
Reimplemented in UInputEventHandler, and XTestEventHandler.
|
pure virtual |
Implemented in WinVMultiEventHandler, UInputEventHandler, WinSendInputEventHandler, and XTestEventHandler.
Move cursor to selected absolute location (x, y) on selected display.
Do nothing by default. Useful for child classes to define behavior.
| Displacement | of X coordinate |
| Displacement | of Y coordinate |
| Screen | number or -1 to use default |
Reimplemented in WinVMultiEventHandler, UInputEventHandler, and XTestEventHandler.
|
pure virtual |
Implemented in WinVMultiEventHandler, UInputEventHandler, WinSendInputEventHandler, and XTestEventHandler.
Move cursor to selected relative location (deltax delaty)
Implemented in WinVMultiEventHandler, UInputEventHandler, WinSendInputEventHandler, and XTestEventHandler.
Do nothing by default. Useful for child classes to define behavior.
| Displacement | of X coordinate |
| Displacement | of Y coordinate |
| Bounding | box width |
| Bounding | box height |
Reimplemented in UInputEventHandler, WinSendInputEventHandler, and XTestEventHandler.
Reimplemented in WinVMultiEventHandler, UInputEventHandler, WinSendInputEventHandler, and XTestEventHandler.
|
protected |