add DLANDSCAPE_CLOCKWISE_ROTATION option in defaults.lua

pull/431/head
chrox 10 years ago
parent e21e017b8d
commit 819fece802

@ -42,6 +42,10 @@ DSHOWHIDDENFILES = false
-- default to false
DSHOWFILESIZE = false
-- landscape clockwise rotation
-- default to true, set to false for counterclockwise rotation
DLANDSCAPE_CLOCKWISE_ROTATION = true
-- customizable tap zones(rectangles)
-- x: x coordinate of top left corner in proportion of screen width
-- y: y coordinate of top left corner in proportion of screen height

@ -116,7 +116,7 @@ function Screen:setScreenMode(mode)
end
elseif mode == "landscape" then
if self.cur_rotation_mode == 0 or self.cur_rotation_mode == 2 then
self:setRotationMode(1)
self:setRotationMode(DLANDSCAPE_CLOCKWISE_ROTATION and 1 or 3)
elseif self.cur_rotation_mode == 1 or self.cur_rotation_mode == 3 then
self:setRotationMode((self.cur_rotation_mode + 2) % 4)
end

Loading…
Cancel
Save