PointerSpeed

interface PointerSpeed(source)

Base type for any pointing device: it provides services to analyze the pointer's movement.

Inheritors

Functions

Link copied to clipboard
abstract fun getCurrentPosition(): Point
Gets the pointer's current position.
Link copied to clipboard
abstract fun getOldPosition(): Point
Gets the pointer's old position.
Link copied to clipboard
abstract fun getVariation(): Point
Gets the vector [current position - old position].
Link copied to clipboard
abstract fun setCurrentPosition(point: Point)
Sets the pointer's current position and, consequently, updates the old one.