Depending on the angle at which the screen is viewed, you can lose sight of the edge of a button behind the masking on the front glass of the screen. Adding the provision for a margin around the perimeter brings the entire viewable area in slightly, correcting this visual defect. Default margin is set to half the key width.
Changes:
Added KEY_MARGIN_X and KEY_MARGIN_Y variables
Updated the KEY_W and KEY_H calculations to factor in the margins
Updated the KEY_X and KEY_Y calculations to factor in the margin offset
Depending on the angle at which the screen is viewed, you can lose sight of the edge of a button behind the masking on the front glass of the screen. Adding the provision for a margin around the perimeter brings the entire viewable area in slightly, correcting this visual defect. Default margin is set to half the key width.
Changes: