AntiMicroX
Public Member Functions
WinSendInputEventHandler Class Reference

Input event handler class for Windows. More...

#include <winsendinputeventhandler.h>

Inheritance diagram for WinSendInputEventHandler:
[legend]
Collaboration diagram for WinSendInputEventHandler:
[legend]

Public Member Functions

 WinSendInputEventHandler (QObject *parent=0)
 
virtual bool init () override
 
virtual bool cleanup () override
 
virtual void sendKeyboardEvent (JoyButtonSlot *slot, bool pressed) override
 
virtual void sendMouseButtonEvent (JoyButtonSlot *slot, bool pressed) override
 
virtual void sendMouseEvent (int xDis, int yDis) override
 Move cursor to selected relative location (deltax delaty) More...
 
virtual void sendMouseSpringEvent (int xDis, int yDis, int width, int height) override
 Do nothing by default. Useful for child classes to define behavior. More...
 
virtual void sendTextEntryEvent (QString maintext) override
 
virtual QString getName () override
 
virtual QString getIdentifier () override
 
- Public Member Functions inherited from BaseEventHandler
 BaseEventHandler (QObject *parent=nullptr)
 
virtual ~BaseEventHandler ()
 
virtual void sendMouseAbsEvent (int xDis, int yDis, int screen)
 Move cursor to selected absolute location (x, y) on selected display. More...
 
virtual void printPostMessages ()
 Do nothing by default. Allow child classes to specify text to output to a text stream. More...
 
QString getErrorString ()
 

Additional Inherited Members

- Protected Attributes inherited from BaseEventHandler
QString lastErrorString
 

Detailed Description

Input event handler class for Windows.

It utilizes SendInput functions

Constructor & Destructor Documentation

◆ WinSendInputEventHandler()

WinSendInputEventHandler::WinSendInputEventHandler ( QObject *  parent = 0)
explicit

Member Function Documentation

◆ cleanup()

bool WinSendInputEventHandler::cleanup ( )
overridevirtual

Implements BaseEventHandler.

◆ getIdentifier()

QString WinSendInputEventHandler::getIdentifier ( )
overridevirtual

Implements BaseEventHandler.

◆ getName()

QString WinSendInputEventHandler::getName ( )
overridevirtual

Implements BaseEventHandler.

◆ init()

bool WinSendInputEventHandler::init ( )
overridevirtual

Implements BaseEventHandler.

◆ sendKeyboardEvent()

void WinSendInputEventHandler::sendKeyboardEvent ( JoyButtonSlot slot,
bool  pressed 
)
overridevirtual

Implements BaseEventHandler.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendMouseButtonEvent()

void WinSendInputEventHandler::sendMouseButtonEvent ( JoyButtonSlot slot,
bool  pressed 
)
overridevirtual

Implements BaseEventHandler.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendMouseEvent()

void WinSendInputEventHandler::sendMouseEvent ( int  xDis,
int  yDis 
)
overridevirtual

Move cursor to selected relative location (deltax delaty)

Implements BaseEventHandler.

◆ sendMouseSpringEvent()

void WinSendInputEventHandler::sendMouseSpringEvent ( int  xDis,
int  yDis,
int  width,
int  height 
)
overridevirtual

Do nothing by default. Useful for child classes to define behavior.

Parameters
Displacementof X coordinate
Displacementof Y coordinate
Boundingbox width
Boundingbox height

Reimplemented from BaseEventHandler.

◆ sendTextEntryEvent()

void WinSendInputEventHandler::sendTextEntryEvent ( QString  maintext)
overridevirtual

Reimplemented from BaseEventHandler.

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: