示例#1
0
    public static bool GetVirKeyUp(string virKey)
    {
        if (!m_isCreateDic) //创造虚拟按键状态
        {
            VirtualKey.SetUpVirKeyDic();
            m_isCreateDic = true;
        }

        if (m_virKeyDownDic.ContainsKey(virKey))
        {
            if (m_virKeyDownDic[virKey].IsPressUp())
            {
                m_virKeyDownDic[virKey].m_isChange = false;
                return(!m_virKeyDownDic[virKey].m_isPress);
            }
            else
            {
                return(false);
            }
        }
        else
        {
            Debug.LogError(virKey + "不存在");
            return(false);
        }
    }