ReferenceScripting APIMotionPointer
MotionPointer
interfaceThe pointer over the wallpaper.
| Name | MotionPointer |
|---|---|
| Kind | interface |
| Script reaches it as | MotionScene.pointer |
| Since | 0.3 |
Syntax
interface MotionPointer { … }Properties
| Name | Type | Description |
|---|---|---|
xproperty | readonly number | Across the scene, 0 at the left to 1 at the right. |
yproperty | readonly number | Down the scene, 0 at the top to 1 at the bottom. |
activeproperty | readonly boolean | Whether the pointer is over the wallpaper. |
buttonsproperty | readonly number | The buttons held now, a bit each: 1 the main one, 2 the second, 4 the middle. |
downproperty | readonly boolean | Whether the main button is held. |
speedproperty | readonly number | How fast it moves: the scene's width a second (smoothed); 0 when it's still or off the wallpaper. |
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.