Motion
Get Motion

ReferenceScripting APIMotionPointer

MotionPointer

interface

The pointer over the wallpaper.

NameMotionPointer
Kindinterface
Script reaches it asMotionScene.pointer
Since0.3

Syntax

interface MotionPointer { … }

Properties

NameTypeDescription
xpropertyreadonly numberAcross the scene, 0 at the left to 1 at the right.
ypropertyreadonly numberDown the scene, 0 at the top to 1 at the bottom.
activepropertyreadonly booleanWhether the pointer is over the wallpaper.
buttonspropertyreadonly numberThe buttons held now, a bit each: 1 the main one, 2 the second, 4 the middle.
downpropertyreadonly booleanWhether the main button is held.
speedpropertyreadonly numberHow fast it moves: the scene's width a second (smoothed); 0 when it's still or off the wallpaper.