Deskflow 1.26.0.0
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
ISecondaryScreen Class Referenceabstract

Secondary screen interface. More...

#include <ISecondaryScreen.h>

Inheritance diagram for ISecondaryScreen:

Public Member Functions

 ISecondaryScreen ()
virtual ~ISecondaryScreen ()=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 screen interface.

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

Constructor & Destructor Documentation

◆ ISecondaryScreen()

ISecondaryScreen::ISecondaryScreen ( )
inline

◆ ~ISecondaryScreen()

virtual ISecondaryScreen::~ISecondaryScreen ( )
virtualdefault

Member Function Documentation

◆ applyScrollModifier()

ScrollDelta ISecondaryScreen::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 ISecondaryScreen::fakeMouseButton ( ButtonID id,
bool press )
pure virtual

Fake mouse press/release.

Synthesize a press or release of mouse button id.

Implemented in deskflow::EiScreen, MSWindowsScreen, OSXScreen, PlatformScreen, and XWindowsScreen.

◆ fakeMouseMove()

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

Fake mouse move.

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

Implemented in MSWindowsScreen, OSXScreen, PlatformScreen, and XWindowsScreen.

◆ fakeMouseRelativeMove()

virtual void ISecondaryScreen::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 MSWindowsScreen, OSXScreen, PlatformScreen, and XWindowsScreen.

◆ fakeMouseWheel()

virtual void ISecondaryScreen::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::EiScreen, MSWindowsScreen, OSXScreen, PlatformScreen, and XWindowsScreen.


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