屏幕右上角四分之一反应迟钝

时间:2014-02-13 18:23:12

标签: lua corona

在对我的一些应用程序进行编程后,我注意到由于某些原因,我的屏幕右上角在电晕模拟器和实际的Android手机上完全没有响应。除了1/4的屏幕外,其他任何地方都能正常工作。即使我在build.settings文件中更改了屏幕的方向,它始终是右上角的问题 - 这让我认为这是一个坐标问题? 基本上这意味着我无法使用屏幕右上角的任何事件监听器(因为我的应用需要它而出现问题)。 我正在使用2013.12.7版本的模拟器和标准build.settings& config.lua文件。

有没有人遇到过这个?问题分散在多台机器上,所以我知道它不是安装问题。任何帮助赞赏。

EDIT-请求的代码现在如下。

这只是我的.lua文件之一,它是应用程序的菜单。前两个按钮的右半部分没有响应。

module (..., package.seeall)

function new()

    local _H = display.contentHeight
    local _W = display.contentWidth

    local menuGroup = display.newGroup()

    local background = display.newImage("graphics/mainMenuBackground.png")
    background.x = _W/2
    background.y = _H/2

    local clefs = display.newImage("graphics/clefs.PNG")
    clefs.x = _W/2
    clefs.y = _H/4
    clefs.scene = "clefs"
    clefs.alpha = 0.8

    local stave = display.newImage("graphics/stave.PNG")
    stave.x = _W/2
    stave.y = _H/2.5
    stave.scene = "stave"
    stave.alpha = 0.8

    local notes = display.newImage("graphics/notes.PNG")
    notes.x = _W/2
    notes.y = _H/1.8
    notes.scene = "notes"
    notes.alpha = 0.8

    local timeSignatures = display.newImage("graphics/timeSignatures.PNG")
    timeSignatures.x = _W/2
    timeSignatures.y = _H*0.7
    timeSignatures.scene = "timeSignatures"
    timeSignatures.alpha = 0.8

    local howToWrite = display.newImage("graphics/howToWrite.PNG")
    howToWrite.x = _W/2
    howToWrite.y = _H*0.85
    howToWrite.scene = "howToWrite"
    howToWrite.alpha = 0.8


    menuGroup:insert(background)
    menuGroup:insert(stave)
    menuGroup:insert(clefs)
    menuGroup:insert(notes)
    menuGroup:insert(timeSignatures)
    menuGroup:insert(howToWrite)

    stave:addEventListener("touch", changeScene)
    clefs:addEventListener("touch", changeScene)
    notes:addEventListener("touch", changeScene)
    timeSignatures:addEventListener("touch", changeScene)
    howToWrite:addEventListener("touch", changeScene)

    return menuGroup

end

0 个答案:

没有答案
相关问题