DISCLAIMER: We use Google Analytics for sending anonymous usage information such as agent's and client's names, and their versions after a successful launch start. This information might help us to ...
Here we use has_motion() to check if any of the spatial axes have non-zero values. The optional argument is the threshold used, and is applied per-axis.