VirtualC64 v5.0 beta
Commodore 64 Emulator
Loading...
Searching...
No Matches
MouseAPI Struct Reference

Mouse Public API. More...

#include <VirtualC64.h>

Public Member Functions

bool detectShakeXY (double x, double y)
 Feeds a coordinate into the shake detector.
 
bool detectShakeDxDy (double dx, double dy)
 Feeds a coordinate into the shake detector.
 

Detailed Description

Mouse Public API.

Member Function Documentation

◆ detectShakeDxDy()

bool detectShakeDxDy ( double dx,
double dy )

Feeds a coordinate into the shake detector.

The shake detector keeps track of the transmitted coordinates and scans for rapid movements caused by shaking the mouse.

Parameters
dxCurrent horizontal mouse position, relative to the previous position.
dyCurrent vertical mouse position, relative to the previous position.
Returns
true iff a shaking mouse has been detected.

◆ detectShakeXY()

bool detectShakeXY ( double x,
double y )

Feeds a coordinate into the shake detector.

The shake detector keeps track of the transmitted coordinates and scans for rapid movements caused by shaking the mouse.

Parameters
xCurrent horizontal mouse position.
yCurrent vertical mouse position.
Returns
true iff a shaking mouse has been detected.

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