andrewfernie / FreeTouchDeckWT32

19 stars 4 forks source link

Updating Key Spacing Calculations #6

Closed Snowflake6 closed 1 year ago

Snowflake6 commented 1 year ago

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:

  1. Added KEY_MARGIN_X and KEY_MARGIN_Y variables
  2. Updated the KEY_W and KEY_H calculations to factor in the margins
  3. Updated the KEY_X and KEY_Y calculations to factor in the margin offset