# RegMotion

Register specific [motion pattern](https://rmjjjt.gitbook.io/rubik-s-futuro-cube-sdk-open-beta-v1-4/summary/api-native-functions/motion/motion-pattern-type-list-definition) for recognition

Syntax: `RegMotion(type)`

* `type` motion type from [pattern type list](https://rmjjjt.gitbook.io/rubik-s-futuro-cube-sdk-open-beta-v1-4/summary/api-native-functions/motion/motion-pattern-type-list-definition)

Notes: Motion type is defined basically by position of a bit in motion mask. Later, if a new motion is detected, output from `Motion()` has corresponding bit set to logic 1. By calling `RegMotion(...)` consequently, another pattern is added.

Example: `RegMotion(TAP GENERIC)`, registers TAP GENERIC

See also: [Motion](https://rmjjjt.gitbook.io/rubik-s-futuro-cube-sdk-open-beta-v1-4/summary/api-native-functions/motion), [AckMotion](https://rmjjjt.gitbook.io/rubik-s-futuro-cube-sdk-open-beta-v1-4/summary/api-native-functions/motion/ackmotion), [RegAllSideTaps](https://rmjjjt.gitbook.io/rubik-s-futuro-cube-sdk-open-beta-v1-4/summary/api-native-functions/motion/regallsidetaps), [UnregAllMotion](https://rmjjjt.gitbook.io/rubik-s-futuro-cube-sdk-open-beta-v1-4/summary/api-native-functions/motion/unregallmotion)
