Apad positions outside the centre-off sector are tested against each outer sector
using techniques similar to hit detection.
The easiest system to implement is a 3×3 grid of square sectors.
The size of the squares is the analog range divided by the grid size. (in this case, 256/3)
An RSQ of at least the default magnitude (3698) is used to make sure the central square is
totally inside the (circular) centre-off sector.
ex:Code:if (analogX>42)&&(analogY>42) {/* Apad RIGHT+DOWN */}
Bookmarks