Mobile Shake Gesture Example

UpvoteUpvote 1 DownvoteDownvote

Features on these Courses

Attached Files

The following files have been attached to this tutorial:

.c3p

shakeshakemobile.c3p

Download now 166.63 KB

Stats

168 visits, 212 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 20 Sep, 2024. Last updated 25 Feb, 2025

Demonstrates how to use the phone's gyroscope,and detect when the user is shaking the phone.

shake gesture

Just shake your phone.

Example Tips:

Long press the screen, when the block turns pink, it enters the shaking time.

Please shake your phone as much as possible within the set 3 seconds. When the time is up, the block will turn blue, and the number of times you shook it within a short period of time will be counted.

In the event, also added some detection method parameter settings, which can adjust the time detection of each effective shake, as well as the amplitude of the shake required.

.C3P

shakeshakemobile.c3p

Download now 166.63 KB
  • 0 Comments

Want to leave a comment? Login or Register an account!