Is Gesture
Tests if a gesture is currently detected.
input.isGesture(Gesture.Shake)
Parameters
gesturemeans the way you hold or move the Calliope mini. This can beshake,tilt forward,tilt backward,screen up,screen down,tilt left,tilt right,free fall,3g, or6g.
Example: random number
This program shows a number from 2 to 9 when you shake the Calliope mini.
forever(function() {
if (input.isGesture(Gesture.Shake)) {
let x = randint(2, 9)
basic.showNumber(x)
}
})