View Single Post
Old 02-22-2023, 08:20 PM   #1
twowheels
Wizard
twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.twowheels ought to be getting tired of karma fortunes by now.
 
twowheels's Avatar
 
Posts: 1,854
Karma: 13432974
Join Date: Nov 2010
Device: Kobo Clara HD, iPad Pro 10", iPhone 15 Pro, Boox Note Max
Reducing corner tap zones

After multiple failed attempts to look up words near the corner of the screen I want to reduce the size of the corner gesture tap zones, and would like to confirm my understanding prior to messing with the advanced options.

It seems that the DTAP_ZONE_[TOP/BOTTOM]_[LEFT/RIGHT] structures are the ones that I want to edit, and it also seems that the x,y,w,h variables are what I want to change, with the values being a fractional ratio of the width, so to make them half the size I’d change 1/8 to 1/16, or more specifically:

Code:
DTAP_ZONE_BOTTOM_RIGHT = { x = 7/8, y = 7/8, w = 1/8, h = 1/8}
…becomes…

Code:
DTAP_ZONE_BOTTOM_RIGHT = { x = 15/16, y = 15/16, w = 1/16, h = 1/16}
…and, looking at how they’re used, it looks like I could also use floating point percentages, such as:

Code:
DTAP_ZONE_BOTTOM_RIGHT = { x = 0.9, y = 0.9, w = 0.1, h = 0.1}
Am I reading the code correctly?
twowheels is offline   Reply With Quote