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