toggle menu
alchemist
jvm
switch theme
search in API
alchemist
/
it.unibo.alchemist.boundary.ui.impl
/
PointerSpeedImpl
Pointer
Speed
Impl
class
PointerSpeedImpl
:
PointerSpeed
(
source
)
Implementation for
PointerSpeed
interface.
Members
Constructors
Pointer
Speed
Impl
Link copied to clipboard
constructor
(
)
Properties
old
Position
Link copied to clipboard
open
val
oldPosition
:
Point
Functions
get
Current
Position
Link copied to clipboard
open
fun
getCurrentPosition
(
)
:
Point
Gets the pointer's current position.
get
Variation
Link copied to clipboard
open
fun
getVariation
(
)
:
Point
Gets the vector [current position - old position].
set
Current
Position
Link copied to clipboard
open
fun
setCurrentPosition
(
point
:
Point
)
Sets the pointer's current position and, consequently, updates the old one.