add customizable tap zones for tap forward/backward and config

This commit is contained in:
chrox
2013-12-15 17:02:52 +08:00
parent ea91cdb4be
commit 912a8a496b
5 changed files with 42 additions and 33 deletions

View File

@@ -29,10 +29,10 @@ function ReaderConfig:initGesListener()
GestureRange:new{
ges = "tap",
range = Geom:new{
x = 0,
y = 11*Screen:getHeight()/12,
w = Screen:getWidth(),
h = Screen:getHeight()/12,
x = Screen:getWidth()*DTAP_ZONE_CONFIG.x,
y = Screen:getHeight()*DTAP_ZONE_CONFIG.y,
w = Screen:getWidth()*DTAP_ZONE_CONFIG.w,
h = Screen:getHeight()*DTAP_ZONE_CONFIG.h,
}
}
}