PointerSpeedImpl

class PointerSpeedImpl : PointerSpeed

Implementation for PointerSpeed interface.

Functions

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

Properties

Link copied to clipboard
private open val oldPosition: Point