Deskflow 1.27.0.8
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
ISecondaryComputer Class Referenceabstract

Secondary computer interface. More...

#include <ISecondaryComputer.h>

Inheritance diagram for ISecondaryComputer:

Public Member Functions

 ISecondaryComputer ()
virtual ~ISecondaryComputer ()=default

accessors

virtual void fakeMouseButton (ButtonID id, bool press)=0
 Fake mouse press/release.
virtual void fakeMouseMove (int32_t x, int32_t y)=0
 Fake mouse move.
virtual void fakeMouseRelativeMove (int32_t dx, int32_t dy) const =0
 Fake mouse move.
virtual void fakeMouseWheel (ScrollDelta delta) const =0
 Synthesize a mouse wheel event of amount This Implmentation for this method should call applyScrollModifier before sending the final delta to the system.
ScrollDelta applyScrollModifier (ScrollDelta delta) const
 Applies any scroll modfifers to the provided delta, This should only be done inside the subclasses fakeMouseWheel impl.

Detailed Description

Secondary computer interface.

This interface defines the methods common to all platform dependent secondary computer implementations.

Constructor & Destructor Documentation

◆ ISecondaryComputer()

ISecondaryComputer::ISecondaryComputer ( )
inline

◆ ~ISecondaryComputer()

virtual ISecondaryComputer::~ISecondaryComputer ( )
virtualdefault

Member Function Documentation

◆ applyScrollModifier()

ScrollDelta ISecondaryComputer::applyScrollModifier ( ScrollDelta delta) const
inline

Applies any scroll modfifers to the provided delta, This should only be done inside the subclasses fakeMouseWheel impl.

Parameters
deltaa ScrollDelta to be modified
Returns
the delta with inversion and scale applied

◆ fakeMouseButton()

virtual void ISecondaryComputer::fakeMouseButton ( ButtonID id,
bool press )
pure virtual

Fake mouse press/release.

Synthesize a press or release of mouse button id.

Implemented in deskflow::EiComputer, MSWindowsComputer, OSXComputer, PlatformComputer, and XWindowsComputer.

◆ fakeMouseMove()

virtual void ISecondaryComputer::fakeMouseMove ( int32_t x,
int32_t y )
pure virtual

Fake mouse move.

Synthesize a mouse move to the absolute coordinates x,y.

Implemented in MSWindowsComputer, OSXComputer, PlatformComputer, and XWindowsComputer.

◆ fakeMouseRelativeMove()

virtual void ISecondaryComputer::fakeMouseRelativeMove ( int32_t dx,
int32_t dy ) const
pure virtual

Fake mouse move.

Synthesize a mouse move to the relative coordinates dx,dy.

Implemented in MSWindowsComputer, OSXComputer, PlatformComputer, and XWindowsComputer.

◆ fakeMouseWheel()

virtual void ISecondaryComputer::fakeMouseWheel ( ScrollDelta delta) const
pure virtual

Synthesize a mouse wheel event of amount This Implmentation for this method should call applyScrollModifier before sending the final delta to the system.

Parameters
deltathe raw delta to fake

Implemented in deskflow::EiComputer, MSWindowsComputer, OSXComputer, PlatformComputer, and XWindowsComputer.


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