![]() |
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) More... | |
virtual void | sendMouseAbsEvent (int xDis, int yDis, int screen) |
Move cursor to selected absolute location (x, y) on selected display. More... | |
virtual void | sendMouseSpringEvent (int xDis, int yDis, int width, int height) |
Do nothing by default. Useful for child classes to define behavior. More... | |
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. More... | |
QString | getErrorString () |
Protected Attributes | |
QString | lastErrorString |
Base class for input event handlers.
It manages mouse movements and keyboard strokes
|
explicit |
|
virtual |
|
pure virtual |
Implemented in UInputEventHandler, WinSendInputEventHandler, XTestEventHandler, and WinVMultiEventHandler.
QString BaseEventHandler::getErrorString | ( | ) |
|
pure virtual |
Implemented in UInputEventHandler, WinSendInputEventHandler, XTestEventHandler, and WinVMultiEventHandler.
|
pure virtual |
Implemented in UInputEventHandler, WinSendInputEventHandler, XTestEventHandler, and WinVMultiEventHandler.
|
pure virtual |
Implemented in UInputEventHandler, WinSendInputEventHandler, XTestEventHandler, and WinVMultiEventHandler.
|
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 UInputEventHandler, WinSendInputEventHandler, XTestEventHandler, and WinVMultiEventHandler.
|
virtual |
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 UInputEventHandler, XTestEventHandler, and WinVMultiEventHandler.
|
pure virtual |
Implemented in UInputEventHandler, WinSendInputEventHandler, XTestEventHandler, and WinVMultiEventHandler.
|
pure virtual |
Move cursor to selected relative location (deltax delaty)
Implemented in UInputEventHandler, WinSendInputEventHandler, XTestEventHandler, and WinVMultiEventHandler.
|
virtual |
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.
|
virtual |
Reimplemented in UInputEventHandler, WinSendInputEventHandler, XTestEventHandler, and WinVMultiEventHandler.
|
protected |