Predefined Variables
Predefined variables are a set of variables that are accessible anywhere. They automatically change dynamically as they always store the latest value.
For example, the value of $mouseX will always change depending on wherever the cursor finds itself. So, if the cursor moves, the value of $mouseX changes automatically.
Learn more about using variables.
$mouseX
x-coordinate of the cursor.$mouseY
y-coordinate of the cursor.$touchX
x-coordinate of where a touch is registered.$touchY
y-coordinate of where a touch is registered.$touchVelocity
Velocity of a touch using a finger or mouse that is in movement.$touchVelocityX
x-component of the velocity of a touch using a finger or mouse that is in movement.$touchVelocityY
y-component of the velocity of a touch using a finger or mouse that is in movement.$touchPointerCount
Number of fingers touching the screen.$keyboardHeight
Height of a native keyboard on a smart device when it is visible. Learn more about the input layer.$deviceOS
Operating system of the device the prototype is running on.$pi
Pi (3.141592).$time
Time (seconds) passed since the prototype started. If you want to know the time passed since a certain event, assign the time when the event occurs to a variable and deduct it from $time.$voiceTranscript
Incoming speech whenever listening to voice commands is enabled. Learn more about voice prototyping.